]> granicus.if.org Git - python/commitdiff
Issue #15307: Skipped test_venv:test_prefixes when run from a venv.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 15 Jul 2012 15:12:54 +0000 (16:12 +0100)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 15 Jul 2012 15:12:54 +0000 (16:12 +0100)
Lib/test/test_venv.py

index c98a14ead9f59a1b565932a6ec21883139969da4..6f73fcf3d0e3154db96e43bb4e7707b70a4437e4 100644 (file)
@@ -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.