changeset: 100811:66765a49465f branch: 3.5 parent: 100807:dc9e5f09ac0c user: Martin Panter date: Thu Mar 31 10:31:30 2016 +0000 files: Lib/test/test_io.py description: Issue #22854: Skip pipe seek tests on Windows diff -r dc9e5f09ac0c -r 66765a49465f Lib/test/test_io.py --- a/Lib/test/test_io.py Thu Mar 31 07:21:56 2016 +0000 +++ b/Lib/test/test_io.py Thu Mar 31 10:31:30 2016 +0000 @@ -424,8 +424,6 @@ self.assertEqual(obj.readable(), readable) writable = "w" in abilities self.assertEqual(obj.writable(), writable) - seekable = "s" in abilities - self.assertEqual(obj.seekable(), seekable) if isinstance(obj, self.TextIOBase): data = "3" @@ -451,6 +449,13 @@ else: self.assertRaises(OSError, obj.write, data) + if sys.platform.startswith("win") or test in ( + pipe_reader, pipe_writer): + # Pipes seem to appear as seekable on Windows + continue + seekable = "s" in abilities + self.assertEqual(obj.seekable(), seekable) + if seekable: obj.tell() obj.seek(0)