From: Brett Cannon <brett@python.org>
Date: Mon, 20 Feb 2012 00:36:44 +0000 (-0500)
Subject: Fix a failing importlib test under Windows.
X-Git-Tag: v3.3.0a1~133
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=336b2f45e5c1212470b1b443a92d953f026b951e;p=python

Fix a failing importlib test under Windows.

Closes issue #14054.
---

diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index 8943be86e5..1dfc3033b5 100644
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -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