diff options
author | Steve Dower <steve.dower@microsoft.com> | 2016-09-07 16:31:52 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2016-09-07 16:31:52 (GMT) |
commit | fe8f4c9e87699acfd740dfc38ae5320691598250 (patch) | |
tree | f911eda95b3418157c21165ec6870b11af8d7a78 /Lib/test | |
parent | 2f8bfef1587b3e8f43c0ce7cd9546137c5b56782 (diff) | |
download | cpython-fe8f4c9e87699acfd740dfc38ae5320691598250.zip cpython-fe8f4c9e87699acfd740dfc38ae5320691598250.tar.gz cpython-fe8f4c9e87699acfd740dfc38ae5320691598250.tar.bz2 |
Issue #27959: Prevent ImportError from escaping codec search function
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_io.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index f9f5d7a..c48ec3a 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -3230,8 +3230,7 @@ def _to_memoryview(buf): class CTextIOWrapperTest(TextIOWrapperTest): io = io - shutdown_error = ("ImportError: sys.meta_path is None" - if os.name == "nt" else "RuntimeError: could not find io module state") + shutdown_error = "RuntimeError: could not find io module state" def test_initialization(self): r = self.BytesIO(b"\xc3\xa9\n\n") |