diff options
author | Brett Cannon <brett@python.org> | 2016-07-16 10:44:13 -0700 |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2016-07-16 10:44:13 -0700 |
commit | 7ca63cb7cc0ea962f40559ba57f767e38d7f1af7 (patch) | |
tree | b92cd20d63e51652b1324428ca591ff5e88a301b /Lib/test/test_importlib/util.py | |
parent | 702b0460d20fa699c1c703e00bcc93243e3020a1 (diff) | |
download | cpython-7ca63cb7cc0ea962f40559ba57f767e38d7f1af7.tar.gz cpython-7ca63cb7cc0ea962f40559ba57f767e38d7f1af7.zip |
Fix regressions introduced by fixes for issue #27083.
Diffstat (limited to 'Lib/test/test_importlib/util.py')
-rw-r--r-- | Lib/test/test_importlib/util.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_importlib/util.py b/Lib/test/test_importlib/util.py index ce20377f8c9..43896c50000 100644 --- a/Lib/test/test_importlib/util.py +++ b/Lib/test/test_importlib/util.py @@ -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') |