diff options
author | Brett Cannon <brett@python.org> | 2012-02-20 00:36:44 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-02-20 00:36:44 (GMT) |
commit | 336b2f45e5c1212470b1b443a92d953f026b951e (patch) | |
tree | b56246cee7a58878a3f255ed22c0e25ad2d7593b /Lib/importlib | |
parent | 85c71ae88201bb59d71cfe600d70349173cec67a (diff) | |
download | cpython-336b2f45e5c1212470b1b443a92d953f026b951e.zip cpython-336b2f45e5c1212470b1b443a92d953f026b951e.tar.gz cpython-336b2f45e5c1212470b1b443a92d953f026b951e.tar.bz2 |
Fix a failing importlib test under Windows.
Closes issue #14054.
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/_bootstrap.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |