diff options
author | Bénédikt Tran <10796600+picnixz@users.noreply.github.com> | 2025-03-16 14:09:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-16 14:09:33 +0100 |
commit | 3185e3115c918ec189e16cf9f5b51a13a0146556 (patch) | |
tree | 4a773847ee275359ae58832afea1071858e539af /Lib/test/test_locale.py | |
parent | 9558d22ac308c102e4f843541eead2022050225e (diff) | |
download | cpython-3185e3115c918ec189e16cf9f5b51a13a0146556.tar.gz cpython-3185e3115c918ec189e16cf9f5b51a13a0146556.zip |
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>
Diffstat (limited to 'Lib/test/test_locale.py')
-rw-r--r-- | Lib/test/test_locale.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_locale.py b/Lib/test/test_locale.py index dc1ba258e0b..798c6ad62cd 100644 --- a/Lib/test/test_locale.py +++ b/Lib/test/test_locale.py @@ -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)): |