summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-01-30 17:51:49 (GMT)
committerBrett Cannon <brett@python.org>2012-01-30 17:51:49 (GMT)
commit8a8945085f6f91688d2c8792acf1154322479816 (patch)
tree4a20a46db406930ed104bac81023e48dbe7b7d34
parent01ad3251aefa7d62308af2580c095ba8ad7885d8 (diff)
downloadcpython-8a8945085f6f91688d2c8792acf1154322479816.zip
cpython-8a8945085f6f91688d2c8792acf1154322479816.tar.gz
cpython-8a8945085f6f91688d2c8792acf1154322479816.tar.bz2
Issue #13890: Also fix for extension module tests for case-insensitivity.
-rw-r--r--Lib/importlib/test/extension/test_case_sensitivity.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/importlib/test/extension/test_case_sensitivity.py b/Lib/importlib/test/extension/test_case_sensitivity.py
index e062fb6..add830d 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'))