]> granicus.if.org Git - python/commitdiff
Fix a failing importlib test under Windows.
authorBrett Cannon <brett@python.org>
Mon, 20 Feb 2012 00:36:44 +0000 (19:36 -0500)
committerBrett Cannon <brett@python.org>
Mon, 20 Feb 2012 00:36:44 +0000 (19:36 -0500)
Closes issue #14054.

Lib/importlib/_bootstrap.py

index 8943be86e586b4d3f2bf596abe216cae2706ba78..1dfc3033b5c5a2ed8ff6bce6c9d4edbba72fa1e4 100644 (file)
@@ -1094,7 +1094,8 @@ def _setup(sys_module, imp_module):
     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