From: Martin Panter Date: Thu, 31 Mar 2016 10:31:30 +0000 (+0000) Subject: Issue #22854: Skip pipe seekable() tests on Windows X-Git-Tag: v3.6.0a1~290 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c0aab1da3bb0c5f8b6b7fc20278f05ebcf2f0994;p=thirdparty%2FPython%2Fcpython.git Issue #22854: Skip pipe seekable() tests on Windows --- diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 1944a0457333..9c410e7a6961 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"