mirror of
https://github.com/python/cpython.git
synced 2025-09-18 14:40:43 +00:00
gh-131277: allow EnvironmentVarGuard
to unset more than one environment variable at once (#131280)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
9558d22ac3
commit
3185e3115c
15 changed files with 38 additions and 45 deletions
|
@ -500,9 +500,7 @@ class TestMiscellaneous(unittest.TestCase):
|
|||
|
||||
try:
|
||||
with os_helper.EnvironmentVarGuard() as env:
|
||||
for key in ('LC_ALL', 'LC_CTYPE', 'LANG', 'LANGUAGE'):
|
||||
env.unset(key)
|
||||
|
||||
env.unset('LC_ALL', 'LC_CTYPE', 'LANG', 'LANGUAGE')
|
||||
env.set('LC_CTYPE', 'UTF-8')
|
||||
|
||||
with check_warnings(('', DeprecationWarning)):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue