Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b347788b
Commit
b347788b
authored
Mar 25, 2016
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip test_venv.test_with_pip() if ctypes miss
Issue #26610.
parent
a9a852c2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
Lib/test/test_venv.py
Lib/test/test_venv.py
+7
-0
No files found.
Lib/test/test_venv.py
View file @
b347788b
...
@@ -31,6 +31,11 @@ try:
...
@@ -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):
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment