You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
796 B
35 lines
796 B
diff --git a/tests/conftest.py b/tests/conftest.py
|
|
index cd64a76..1d5ddbb 100644
|
|
--- a/tests/conftest.py
|
|
+++ b/tests/conftest.py
|
|
@@ -14,11 +14,23 @@ def prepare_url(value):
|
|
return inner
|
|
|
|
|
|
-@pytest.fixture
|
|
-def httpbin(httpbin):
|
|
- return prepare_url(httpbin)
|
|
+import sys
|
|
|
|
+if sys.version_info[0] < 3:
|
|
+ @pytest.fixture
|
|
+ def httpbin():
|
|
+ pytest.skip('No httpbin for Python 2')
|
|
|
|
-@pytest.fixture
|
|
-def httpbin_secure(httpbin_secure):
|
|
- return prepare_url(httpbin_secure)
|
|
+ @pytest.fixture
|
|
+ def httpbin_secure():
|
|
+ pytest.skip('No httpbin for Python 2')
|
|
+
|
|
+else:
|
|
+ @pytest.fixture
|
|
+ def httpbin(httpbin):
|
|
+ return prepare_url(httpbin)
|
|
+
|
|
+
|
|
+ @pytest.fixture
|
|
+ def httpbin_secure(httpbin_secure):
|
|
+ return prepare_url(httpbin_secure)
|