]> granicus.if.org Git - python/commitdiff
Issue #13890: Also fix for extension module tests for case-insensitivity.
authorBrett Cannon <brett@python.org>
Mon, 30 Jan 2012 17:51:49 +0000 (12:51 -0500)
committerBrett Cannon <brett@python.org>
Mon, 30 Jan 2012 17:51:49 +0000 (12:51 -0500)
Lib/importlib/test/extension/test_case_sensitivity.py

index e062fb6597d1513bd6ef6999bbe0c99506a84c4a..add830deddb84dd4285dc08b7b1a1fec5a256552 100644 (file)
@@ -20,12 +20,18 @@ class ExtensionModuleCaseSensitivityTest(unittest.TestCase):
     def test_case_sensitive(self):
         with support.EnvironmentVarGuard() as env:
             env.unset('PYTHONCASEOK')
+            if b'PYTHONCASEOK' in _bootstrap._os.environ:
+                self.skipTest('os.environ changes not reflected in '
+                              '_os.environ')
             loader = self.find_module()
             self.assertIsNone(loader)
 
     def test_case_insensitivity(self):
         with support.EnvironmentVarGuard() as env:
             env.set('PYTHONCASEOK', '1')
+            if b'PYTHONCASEOK' not in _bootstrap._os.environ:
+                self.skipTest('os.environ changes not reflected in '
+                              '_os.environ')
             loader = self.find_module()
             self.assertTrue(hasattr(loader, 'load_module'))