From 336b2f45e5c1212470b1b443a92d953f026b951e Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sun, 19 Feb 2012 19:36:44 -0500 Subject: Fix a failing importlib test under Windows. Closes issue #14054. --- Lib/importlib/_bootstrap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index 8943be8..1dfc303 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 -- cgit v0.12