Commit 633ebda3 authored by Victor Stinner's avatar Victor Stinner

Issue #26637: Fix test_io

The import machinery now raises a different exception when it fails at Python
shutdown.
parent 7285d520
...@@ -3079,8 +3079,7 @@ class CTextIOWrapperTest(TextIOWrapperTest): ...@@ -3079,8 +3079,7 @@ class CTextIOWrapperTest(TextIOWrapperTest):
class PyTextIOWrapperTest(TextIOWrapperTest): class PyTextIOWrapperTest(TextIOWrapperTest):
io = pyio io = pyio
#shutdown_error = "LookupError: unknown encoding: ascii" shutdown_error = "LookupError: unknown encoding: ascii"
shutdown_error = "TypeError: 'NoneType' object is not iterable"
class IncrementalNewlineDecoderTest(unittest.TestCase): class IncrementalNewlineDecoderTest(unittest.TestCase):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment