mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +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
|
@ -2896,8 +2896,7 @@ class TextIOWrapperTest(unittest.TestCase):
|
|||
# try to get a user preferred encoding different than the current
|
||||
# locale encoding to check that TextIOWrapper() 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')
|
||||
|
||||
current_locale_encoding = locale.getencoding()
|
||||
b = self.BytesIO()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue