diff options
author | Bénédikt Tran <10796600+picnixz@users.noreply.github.com> | 2025-03-16 13:09:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-16 13:09:33 (GMT) |
commit | 3185e3115c918ec189e16cf9f5b51a13a0146556 (patch) | |
tree | 4a773847ee275359ae58832afea1071858e539af /Lib/test/test_builtin.py | |
parent | 9558d22ac308c102e4f843541eead2022050225e (diff) | |
download | cpython-3185e3115c918ec189e16cf9f5b51a13a0146556.zip cpython-3185e3115c918ec189e16cf9f5b51a13a0146556.tar.gz cpython-3185e3115c918ec189e16cf9f5b51a13a0146556.tar.bz2 |
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_builtin.py')
-rw-r--r-- | Lib/test/test_builtin.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index a0bb685..90998ff 100644 --- a/Lib/test/test_builtin.py +++ b/Lib/test/test_builtin.py @@ -1568,8 +1568,7 @@ class BuiltinTest(ComplexesAreIdenticalMixin, unittest.TestCase): # try to get a user preferred encoding different than the current # locale encoding to check that open() uses the current locale # encoding and not the user preferred encoding - for key in ('LC_ALL', 'LANG', 'LC_CTYPE'): - env.unset(key) + env.unset('LC_ALL', 'LANG', 'LC_CTYPE') self.write_testfile() current_locale_encoding = locale.getencoding() |