We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ff3216 commit b068b72Copy full SHA for b068b72
Lib/test/test_venv.py
@@ -25,6 +25,11 @@
25
except ImportError:
26
ssl = None
27
28
+try:
29
+ import threading
30
+except ImportError:
31
+ threading = None
32
+
33
skipInVenv = unittest.skipIf(sys.prefix != sys.base_prefix,
34
'Test not appropriate in a venv')
35
@@ -319,6 +324,8 @@ def test_devnull_exists_and_is_empty(self):
319
324
320
325
# Requesting pip fails without SSL (http://bugs.python.org/issue19744)
321
326
@unittest.skipIf(ssl is None, ensurepip._MISSING_SSL_MESSAGE)
327
+ @unittest.skipUnless(threading, 'some dependencies of pip import threading'
328
+ ' module unconditionally')
322
329
def test_with_pip(self):
323
330
rmtree(self.env_dir)
331
with EnvironmentVarGuard() as envvars:
0 commit comments