Commit c744cf03 authored by Brett Cannon's avatar Brett Cannon

Fix a failing importlib test under Windows.

Closes issue #14054.
parent 8324f81c
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment