From 7ca63cb7cc0ea962f40559ba57f767e38d7f1af7 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 16 Jul 2016 10:44:13 -0700 Subject: Fix regressions introduced by fixes for issue #27083. --- Lib/test/test_importlib/util.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Lib/test/test_importlib/util.py') 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') -- cgit v1.2.3