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

Skip to content

Commit 6d5cf8a

Browse files
committed
Fixes expected error when getting encoding while shutting down.
1 parent 4db86bc commit 6d5cf8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3276,7 +3276,7 @@ def test_rwpair_cleared_before_textio(self):
32763276

32773277
class PyTextIOWrapperTest(TextIOWrapperTest):
32783278
io = pyio
3279-
shutdown_error = "ImportError: sys.meta_path is None, Python is likely shutting down"
3279+
shutdown_error = "LookupError: unknown encoding: ascii"
32803280

32813281

32823282
class IncrementalNewlineDecoderTest(unittest.TestCase):

0 commit comments

Comments
 (0)