summaryrefslogtreecommitdiffstats
path: root/tests/utils/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/utils/__init__.py')
-rw-r--r--tests/utils/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/utils/__init__.py b/tests/utils/__init__.py
index 8a575aef..7d2557b6 100644
--- a/tests/utils/__init__.py
+++ b/tests/utils/__init__.py
@@ -1,6 +1,7 @@
"""Utilities for HTTPie test suite."""
import re
import shlex
+import os
import sys
import time
import json
@@ -30,6 +31,7 @@ REMOTE_HTTPBIN_DOMAIN = 'pie.dev'
HTTPBIN_WITH_CHUNKED_SUPPORT_DOMAIN = 'pie.dev'
HTTPBIN_WITH_CHUNKED_SUPPORT = 'http://' + HTTPBIN_WITH_CHUNKED_SUPPORT_DOMAIN
+IS_PYOPENSSL = os.getenv('HTTPIE_TEST_WITH_PYOPENSSL', '0') == '1'
TESTS_ROOT = Path(__file__).parent.parent
CRLF = '\r\n'