[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

Kyle Stanley report at bugs.python.org
Wed Feb 19 02:06:35 EST 2020


Kyle Stanley <aeros167 at gmail.com> added the comment:

>From what I can tell, the regression seems like it could be fixed by adding "@unittest.skipIf(sys.flags.ignore_environment)" to the following tests in python/cpython/Lib/test/test_importlib/source/test_case_sensitivity.py that modify "PYTHONCASEOK":

CaseSensitivityTest.test_sensitive
CaseSensitivityTest.test_insensitive

Those tests seem ultimately pointless if environmental variables are being ignored (-E or -I), so I think in this case it's a misleading test failure, no?

----------
nosy: +aeros

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38691>
_______________________________________


More information about the Python-bugs-list mailing list