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

Skip to content

Commit e2ffe29

Browse files
committed
new and exciting shutdown error on windows
1 parent 9d2617b commit e2ffe29

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_io.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3230,7 +3230,8 @@ def _to_memoryview(buf):
32303230

32313231
class CTextIOWrapperTest(TextIOWrapperTest):
32323232
io = io
3233-
shutdown_error = "RuntimeError: could not find io module state"
3233+
shutdown_error = ("ImportError: sys.meta_path is None"
3234+
if os.name == "nt" else "RuntimeError: could not find io module state")
32343235

32353236
def test_initialization(self):
32363237
r = self.BytesIO(b"\xc3\xa9\n\n")

0 commit comments

Comments
 (0)