[Python-checkins] cpython: Fixes expected error when getting encoding while shutting down.

steve.dower python-checkins at python.org
Fri Sep 9 12:21:16 EDT 2016


https://hg.python.org/cpython/rev/8fa335f0eabf
changeset:   103409:8fa335f0eabf
user:        Steve Dower <steve.dower at microsoft.com>
date:        Fri Sep 09 09:21:01 2016 -0700
summary:
  Fixes expected error when getting encoding while shutting down.

files:
  Lib/test/test_io.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list