From: Brett Cannon Date: Mon, 30 Jan 2012 17:51:49 +0000 (-0500) Subject: Issue #13890: Also fix for extension module tests for case-insensitivity. X-Git-Tag: v3.3.0a1~277 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a8945085f6f91688d2c8792acf1154322479816;p=python Issue #13890: Also fix for extension module tests for case-insensitivity. --- diff --git a/Lib/importlib/test/extension/test_case_sensitivity.py b/Lib/importlib/test/extension/test_case_sensitivity.py index e062fb6597..add830dedd 100644 --- a/Lib/importlib/test/extension/test_case_sensitivity.py +++ b/Lib/importlib/test/extension/test_case_sensitivity.py @@ -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'))