summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-07-15 15:12:54 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-07-15 15:12:54 (GMT)
commit509d87d4a06f2812c82df9b2fab83272f6463a81 (patch)
tree2c441b8c0e51572f6d5372bdbbc4414afb385879
parent9ac4d8808f21869c558f2d9fd5e46cb083443ea8 (diff)
downloadcpython-509d87d4a06f2812c82df9b2fab83272f6463a81.zip
cpython-509d87d4a06f2812c82df9b2fab83272f6463a81.tar.gz
cpython-509d87d4a06f2812c82df9b2fab83272f6463a81.tar.bz2
Issue #15307: Skipped test_venv:test_prefixes when run from a venv.
-rw-r--r--Lib/test/test_venv.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py
index c98a14e..6f73fcf 100644
--- a/Lib/test/test_venv.py
+++ b/Lib/test/test_venv.py
@@ -87,6 +87,8 @@ class BasicTest(BaseTest):
print(' %r' % os.listdir(bd))
self.assertTrue(os.path.exists(fn), 'File %r should exist.' % fn)
+ @unittest.skipIf(sys.prefix != sys.base_prefix, 'Test not appropriate '
+ 'in a venv')
def test_prefixes(self):
"""
Test that the prefix values are as expected.