]> granicus.if.org Git - python/commitdiff
new and exciting shutdown error on windows
authorBenjamin Peterson <benjamin@python.org>
Wed, 7 Sep 2016 15:54:35 +0000 (08:54 -0700)
committerBenjamin Peterson <benjamin@python.org>
Wed, 7 Sep 2016 15:54:35 +0000 (08:54 -0700)
Lib/test/test_io.py

index c48ec3a23966952d8cec933788ecdbd1aee79c70..f9f5d7a7ee8aa3f21f46793562e1cf56ea49e61a 100644 (file)
@@ -3230,7 +3230,8 @@ def _to_memoryview(buf):
 
 class CTextIOWrapperTest(TextIOWrapperTest):
     io = io
-    shutdown_error = "RuntimeError: could not find io module state"
+    shutdown_error = ("ImportError: sys.meta_path is None"
+        if os.name == "nt" else "RuntimeError: could not find io module state")
 
     def test_initialization(self):
         r = self.BytesIO(b"\xc3\xa9\n\n")