From 3420ec94c1b1c959ea9888cc241fa90aeefe06d8 Mon Sep 17 00:00:00 2001 From: Shahar Naveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Mon, 11 May 2026 18:40:14 +0300 Subject: [PATCH] Reapply patches to `test_io.py` (#7814) --- Lib/test/test_io.py | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 497c4e6e2..4496ecd65 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -4109,11 +4109,6 @@ class CTextIOWrapperTest(TextIOWrapperTest): io = io shutdown_error = "LookupError: unknown encoding: ascii" - @unittest.skipUnless(hasattr(os, "pipe"), "requires os.pipe()") - @unittest.expectedFailure - def test_read_non_blocking(self): - return super().test_read_non_blocking() - def test_initialization(self): r = self.BytesIO(b"\xc3\xa9\n\n") b = self.BufferedReader(r, 1000) @@ -4240,19 +4235,13 @@ class PyTextIOWrapperTest(TextIOWrapperTest): io = pyio shutdown_error = "LookupError: unknown encoding: ascii" - @unittest.expectedFailureIfWindows("TODO: RUSTPYTHON; os.set_blocking not available on Windows") - def test_read_non_blocking(self): - return super().test_read_non_blocking() - @unittest.expectedFailure # TODO: RUSTPYTHON; LookupError: unknown encoding: euc_jis_2004 def test_seek_with_encoder_state(self): return super().test_seek_with_encoder_state() - if sys.platform == "win32": - @unittest.skipUnless(hasattr(os, "pipe"), "requires os.pipe()") - @unittest.expectedFailure - def test_read_non_blocking(self): - return super().test_read_non_blocking() + @unittest.expectedFailureIfWindows("TODO: RUSTPYTHON; os.set_blocking not available on Windows") + def test_read_non_blocking(self): + return super().test_read_non_blocking() class IncrementalNewlineDecoderTest(unittest.TestCase):