Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 633ebda

Browse files
committed
Issue #26637: Fix test_io
The import machinery now raises a different exception when it fails at Python shutdown.
1 parent 7285d52 commit 633ebda

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/test/test_io.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3079,8 +3079,7 @@ def test_rwpair_cleared_before_textio(self):
30793079

30803080
class PyTextIOWrapperTest(TextIOWrapperTest):
30813081
io = pyio
3082-
#shutdown_error = "LookupError: unknown encoding: ascii"
3083-
shutdown_error = "TypeError: 'NoneType' object is not iterable"
3082+
shutdown_error = "LookupError: unknown encoding: ascii"
30843083

30853084

30863085
class IncrementalNewlineDecoderTest(unittest.TestCase):

0 commit comments

Comments
 (0)