summaryrefslogtreecommitdiff
path: root/Lib/test/test_venv.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-07-15 16:12:54 +0100
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-07-15 16:12:54 +0100
commit419e1c6451af44e38d0dccaaef07669dd96dca67 (patch)
treead94da587bbfe183722c1f02320afc710feeebff /Lib/test/test_venv.py
parentb1fedb8674eba63037beb7bf3d70e963b914b2f4 (diff)
downloadcpython-419e1c6451af44e38d0dccaaef07669dd96dca67.tar.gz
Issue #15307: Skipped test_venv:test_prefixes when run from a venv.
Diffstat (limited to 'Lib/test/test_venv.py')
-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 c98a14ead9..6f73fcf3d0 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.