From 509d87d4a06f2812c82df9b2fab83272f6463a81 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Sun, 15 Jul 2012 16:12:54 +0100 Subject: Issue #15307: Skipped test_venv:test_prefixes when run from a venv. --- Lib/test/test_venv.py | 2 ++ 1 file changed, 2 insertions(+) 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. -- cgit v0.12