From: Victor Stinner Date: Fri, 25 Mar 2016 07:57:16 +0000 (+0100) Subject: Issue #26637: Fix test_io X-Git-Tag: v3.6.0a1~340 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=633ebda3ba57428835d27866d8567af1c857fcd2;p=thirdparty%2FPython%2Fcpython.git Issue #26637: Fix test_io The import machinery now raises a different exception when it fails at Python shutdown. --- diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 86440c5b39b9..37b9b2d3a4e8 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -3079,8 +3079,7 @@ class CTextIOWrapperTest(TextIOWrapperTest): class PyTextIOWrapperTest(TextIOWrapperTest): io = pyio - #shutdown_error = "LookupError: unknown encoding: ascii" - shutdown_error = "TypeError: 'NoneType' object is not iterable" + shutdown_error = "LookupError: unknown encoding: ascii" class IncrementalNewlineDecoderTest(unittest.TestCase):