From: Vinay Sajip Date: Sun, 15 Jul 2012 15:12:54 +0000 (+0100) Subject: Issue #15307: Skipped test_venv:test_prefixes when run from a venv. X-Git-Tag: v3.3.0b2~197 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=509d87d4a06f2812c82df9b2fab83272f6463a81;p=python Issue #15307: Skipped test_venv:test_prefixes when run from a venv. --- 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.