mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
Fix regressions introduced by fixes for issue #27083.
This commit is contained in:
parent
702b0460d2
commit
7ca63cb7cc
5 changed files with 2592 additions and 2576 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue