summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_io.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-25 07:57:16 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-03-25 07:57:16 (GMT)
commit633ebda3ba57428835d27866d8567af1c857fcd2 (patch)
tree36c96528e34c1eac6d766760455e34d3199f45bb /Lib/test/test_io.py
parent7285d520e00e110af2f150487fc0ccfaa8430684 (diff)
downloadcpython-633ebda3ba57428835d27866d8567af1c857fcd2.zip
cpython-633ebda3ba57428835d27866d8567af1c857fcd2.tar.gz
cpython-633ebda3ba57428835d27866d8567af1c857fcd2.tar.bz2
Issue #26637: Fix test_io
The import machinery now raises a different exception when it fails at Python shutdown.
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r--Lib/test/test_io.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py
index 86440c5..37b9b2d 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):