[Python-checkins] cpython: Fix a failing importlib test under Windows.

brett.cannon python-checkins at python.org
Mon Feb 20 01:36:50 CET 2012


http://hg.python.org/cpython/rev/5b4b70bd2b6f
changeset:   75045:5b4b70bd2b6f
user:        Brett Cannon <brett at python.org>
date:        Sun Feb 19 19:36:44 2012 -0500
summary:
  Fix a failing importlib test under Windows.

Closes issue #14054.

files:
  Lib/importlib/_bootstrap.py |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -1094,7 +1094,8 @@
     setattr(self_module, '_os', os_module)
     setattr(self_module, 'path_sep', path_sep)
 
-    if sys_module.platform in CASE_INSENSITIVE_PLATFORMS:
+    if any(sys_module.platform.startswith(x)
+            for x in CASE_INSENSITIVE_PLATFORMS):
         _case_ok = _case_insensitive_ok
     else:
         _case_ok = _case_sensitive_ok

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


More information about the Python-checkins mailing list