changeset: 100810:fb10d1f5016e parent: 100808:c27e9dcad1a3 user: Martin Panter date: Thu Mar 31 10:31:30 2016 +0000 files: Lib/test/test_io.py description: Issue #22854: Skip pipe seekable() tests on Windows diff -r c27e9dcad1a3 -r fb10d1f5016e Lib/test/test_io.py --- a/Lib/test/test_io.py Thu Mar 31 08:25:59 2016 +0000 +++ b/Lib/test/test_io.py Thu Mar 31 10:31:30 2016 +0000 @@ -425,7 +425,12 @@ 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"