Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
e4da2275
Commit
e4da2275
authored
Mar 05, 2018
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip tests in test_virtualenv if the prefix is broken on that virtualenv. Ref #1284.
parent
0a6264dc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
setuptools/tests/test_virtualenv.py
setuptools/tests/test_virtualenv.py
+15
-0
No files found.
setuptools/tests/test_virtualenv.py
View file @
e4da2275
...
...
@@ -2,6 +2,7 @@ import glob
import
os
import
sys
import
pytest
from
pytest
import
yield_fixture
from
pytest_fixture_config
import
yield_requires_config
...
...
@@ -11,6 +12,20 @@ from .textwrap import DALS
from
.test_easy_install
import
make_nspkg_sdist
@
pytest
.
fixture
(
autouse
=
True
)
def
pytest_virtualenv_works
(
virtualenv
):
"""
pytest_virtualenv may not work. if it doesn't, skip these
tests. See #1284.
"""
venv_prefix
=
virtualenv
.
run
(
'python -c "import sys; print(sys.prefix)"'
,
capture
=
True
,
).
strip
()
if
venv_prefix
==
sys
.
prefix
:
pytest
.
skip
(
"virtualenv is broken (see pypa/setuptools#1284)"
)
@
yield_requires_config
(
pytest_virtualenv
.
CONFIG
,
[
'virtualenv_executable'
])
@
yield_fixture
(
scope
=
'function'
)
def
bare_virtualenv
():
...
...
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