[Python-checkins] cpython: Issue #13890: Also fix for extension module tests for case-insensitivity.

brett.cannon python-checkins at python.org
Mon Jan 30 18:51:57 CET 2012


http://hg.python.org/cpython/rev/2914ce82bf89
changeset:   74688:2914ce82bf89
user:        Brett Cannon <brett at python.org>
date:        Mon Jan 30 12:51:49 2012 -0500
summary:
  Issue #13890: Also fix for extension module tests for case-insensitivity.

files:
  Lib/importlib/test/extension/test_case_sensitivity.py |  6 ++++++
  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
--- a/Lib/importlib/test/extension/test_case_sensitivity.py
+++ b/Lib/importlib/test/extension/test_case_sensitivity.py
@@ -20,12 +20,18 @@
     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'))
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list