From c0aab1da3bb0c5f8b6b7fc20278f05ebcf2f0994 Mon Sep 17 00:00:00 2001 From: Martin Panter Date: Thu, 31 Mar 2016 10:31:30 +0000 Subject: Issue #22854: Skip pipe seekable() tests on Windows --- Lib/test/test_io.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 1944a04..9c410e7 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -425,7 +425,12 @@ class IOTest(unittest.TestCase): writable = "w" in abilities self.assertEqual(obj.writable(), writable) seekable = "s" in abilities - self.assertEqual(obj.seekable(), seekable) + + # Detection of pipes being non-seekable does not seem to work + # on Windows + if not sys.platform.startswith("win") or test not in ( + pipe_reader, pipe_writer): + self.assertEqual(obj.seekable(), seekable) if isinstance(obj, self.TextIOBase): data = "3" -- cgit v0.12