Fix regressions introduced by fixes for issue #27083.

This commit is contained in:
Brett Cannon 2016-07-16 10:44:13 -07:00
parent 702b0460d2
commit 7ca63cb7cc
5 changed files with 2592 additions and 2576 deletions

View file

@ -378,3 +378,12 @@ def mock_path_hook(*entries, importer):
raise ImportError
return importer
return hook
class CASEOKTestBase:
def caseok_env_changed(self, *, should_exist):
possibilities = b'PYTHONCASEOK', 'PYTHONCASEOK'
if any(x in self.importlib._bootstrap_external._os.environ
for x in possibilities) != should_exist:
self.skipTest('os.environ changes not reflected in _os.environ')