diff options
author | Brett Cannon <brett@python.org> | 2016-07-16 10:45:16 -0700 |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2016-07-16 10:45:16 -0700 |
commit | 4106f61c4c60a0d981b16aca08daa89cdd07a29b (patch) | |
tree | fd542246d2e8c18e58f552792df7e36a1ef6a7ae /Lib/test/test_importlib/util.py | |
parent | d2fe862baba9e98ec19d00184c1405ddc978f924 (diff) | |
parent | 7ca63cb7cc0ea962f40559ba57f767e38d7f1af7 (diff) | |
download | cpython-git-4106f61c4c60a0d981b16aca08daa89cdd07a29b.tar.gz |
Merge for #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 f72dc45678..64e039e00f 100644 --- a/Lib/test/test_importlib/util.py +++ b/Lib/test/test_importlib/util.py @@ -377,3 +377,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') |