cpython (3.5): Issue #22854: Skip pipe seek tests on Windows
https://hg.python.org/cpython/rev/66765a49465f changeset: 100811:66765a49465f branch: 3.5 parent: 100807:dc9e5f09ac0c user: Martin Panter <vadmium+py@gmail.com> date: Thu Mar 31 10:31:30 2016 +0000 summary: Issue #22854: Skip pipe seek tests on Windows files: Lib/test/test_io.py | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -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) -- Repository URL: https://hg.python.org/cpython
participants (1)
-
martin.panter