diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-11-25 10:04:33 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-11-25 10:04:33 -0500 |
commit | 75a571e4d9d5f5c3fde661c54a368b533be1978b (patch) | |
tree | 98e6213ce829e92aa0d640b5705d356a7bd4dea4 | |
parent | adc0d911143caf6a174fed7b71b75249404d5eff (diff) | |
download | external_python_setuptools-75a571e4d9d5f5c3fde661c54a368b533be1978b.tar.gz external_python_setuptools-75a571e4d9d5f5c3fde661c54a368b533be1978b.tar.bz2 external_python_setuptools-75a571e4d9d5f5c3fde661c54a368b533be1978b.zip |
Skip the test when running under venv also
-rw-r--r-- | setuptools/tests/test_develop.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/setuptools/tests/test_develop.py b/setuptools/tests/test_develop.py index 71f0d69a..ab5da00e 100644 --- a/setuptools/tests/test_develop.py +++ b/setuptools/tests/test_develop.py @@ -51,8 +51,10 @@ def test_env(tmpdir, temp_user): class TestDevelop: - @pytest.mark.skipif(hasattr(sys, 'real_prefix'), - reason="Cannot run when invoked in a virtualenv") + in_virtualenv = hasattr(sys, 'real_prefix') + in_venv = hasattr(sys, 'base_prefix') and sys.base_prefix != sys.prefix + @pytest.mark.skipif(in_virtualenv or in_venv, + reason="Cannot run when invoked in a virtualenv or venv") def test_2to3_user_mode(self, test_env): settings = dict( name='foo', |