8000 bpo-36144: Update os.environ and os.environb for PEP 584 by chaburkland · Pull Request #18911 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-36144: Update os.environ and os.environb for PEP 584 #18911

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Mar 13, 2020
Prev Previous commit
Removes some unnecessary/expensive tests
  • Loading branch information
chaburkland committed Mar 13, 2020
commit 7a693ba331d5971a442db23e90b698cfc8e51743
4 changes: 0 additions & 4 deletions Lib/test/test_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,6 @@ def test_or_operator(self):
self.assertIs(NotImplemented, os.environ.__or__(new_vars_items))

self._test_underlying_process_env('_A_', '')
self._test_underlying_process_env('_B_', '')
self._test_underlying_process_env(overridden_key, original_value)

def test_ior_operator(self):
Expand All @@ -1068,7 +1067,6 @@ def test_ior_operator(self):
self.assertEqual('3', os.environ[overridden_key])

self._test_underlying_process_env('_A_', '1')
self._test_underlying_process_env('_B_', '2')
self._test_underlying_process_env(overridden_key, '3')

def test_ior_operator_invalid_dicts(self):
Expand Down Expand Up @@ -1097,7 +1095,6 @@ def test_ior_operator_key_value_iterable(self):
self.assertEqual('3', os.environ[overridden_key])

self._test_underlying_process_env('_A_', '1')
self._test_underlying_process_env('_B_', '2')
self._test_underlying_process_env(overridden_key, '3')

def test_ror_operator(self):
Expand All @@ -1117,7 +1114,6 @@ def test_ror_operator(self):
self.assertIs(NotImplemented, os.environ.__ror__(new_vars_items))

self._test_underlying_process_env('_A_', '')
self._test_underlying_process_env('_B_', '')
self._test_underlying_process_env(overridden_key, original_value)


Expand Down
0