mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
Merge for #27083
This commit is contained in:
commit
4106f61c4c
4 changed files with 28 additions and 22 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue