diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-03-31 10:31:30 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-03-31 10:31:30 (GMT) |
commit | c0aab1da3bb0c5f8b6b7fc20278f05ebcf2f0994 (patch) | |
tree | 59d6efbf47d49f4df4d086a1ad0309477161b73a /Lib/test | |
parent | 047f3b737608c799764f5e7d083764f42c9a1b42 (diff) | |
download | cpython-c0aab1da3bb0c5f8b6b7fc20278f05ebcf2f0994.zip cpython-c0aab1da3bb0c5f8b6b7fc20278f05ebcf2f0994.tar.gz cpython-c0aab1da3bb0c5f8b6b7fc20278f05ebcf2f0994.tar.bz2 |
Issue #22854: Skip pipe seekable() tests on Windows
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_io.py | 7 |
1 files changed, 6 insertions, 1 deletions
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" |