mirror of
https://github.com/python/cpython.git
synced 2025-09-13 20:27:05 +00:00
parent
a9a852c2b1
commit
b347788b82
1 changed files with 7 additions and 0 deletions
|
@ -31,6 +31,11 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
threading = None
|
threading = None
|
||||||
|
|
||||||
|
try:
|
||||||
|
import ctypes
|
||||||
|
except ImportError:
|
||||||
|
ctypes = None
|
||||||
|
|
||||||
skipInVenv = unittest.skipIf(sys.prefix != sys.base_prefix,
|
skipInVenv = unittest.skipIf(sys.prefix != sys.base_prefix,
|
||||||
'Test not appropriate in a venv')
|
'Test not appropriate in a venv')
|
||||||
|
|
||||||
|
@ -327,6 +332,8 @@ class EnsurePipTest(BaseTest):
|
||||||
@unittest.skipIf(ssl is None, ensurepip._MISSING_SSL_MESSAGE)
|
@unittest.skipIf(ssl is None, ensurepip._MISSING_SSL_MESSAGE)
|
||||||
@unittest.skipUnless(threading, 'some dependencies of pip import threading'
|
@unittest.skipUnless(threading, 'some dependencies of pip import threading'
|
||||||
' module unconditionally')
|
' module unconditionally')
|
||||||
|
# Issue #26610: pip/pep425tags.py requires ctypes
|
||||||
|
@unittest.skipUnless(ctypes, 'pip requires ctypes')
|
||||||
def test_with_pip(self):
|
def test_with_pip(self):
|
||||||
rmtree(self.env_dir)
|
rmtree(self.env_dir)
|
||||||
with EnvironmentVarGuard() as envvars:
|
with EnvironmentVarGuard() as envvars:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue