diff options
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r-- | Lib/test/test_io.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 23eb3b3..455a87b 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -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() |