diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index f3b33f23808..a7bb95b243d 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -449,7 +449,7 @@ class UnseekableWriter(self.MockUnseekableIO): else: self.assertRaises(OSError, obj.write, data) - if sys.platform.startswith("win") or test in ( + if sys.platform.startswith("win") and test in ( pipe_reader, pipe_writer): # Pipes seem to appear as seekable on Windows continue