Skip to content

Commit 072278e

Browse files
committed
Re-add python2.7 quirk
1 parent 2c4f759 commit 072278e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_verify_base_url.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
# This Source Code Form is subject to the terms of the Mozilla Public
22
# License, v. 2.0. If a copy of the MPL was not distributed with this
33
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4-
4+
import pytest
55
from requests.packages.urllib3.util.retry import Retry
66

77

8+
# TODO: Remove this when we remove support for python 2.7
9+
@pytest.fixture(autouse=True)
10+
def httpserver(httpserver):
11+
return httpserver
12+
13+
814
def test_ignore_bad_url_by_default(testdir, httpserver):
915
testdir.makepyfile("def test_pass(): pass")
1016
httpserver.serve_content(content="<h1>Error!</h1>", code=500)

0 commit comments

Comments
 (0)