diff options
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)): |