diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index c48ec3a2396..1115d9f1c28 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -3276,7 +3276,7 @@ class CTextIOWrapperTest(TextIOWrapperTest): class PyTextIOWrapperTest(TextIOWrapperTest): io = pyio - shutdown_error = "LookupError: unknown encoding: ascii" + shutdown_error = "ImportError: sys.meta_path is None, Python is likely shutting down" class IncrementalNewlineDecoderTest(unittest.TestCase):