[Python-checkins] cpython: Issue #22854: Skip pipe seekable() tests on Windows

martin.panter python-checkins at python.org
Thu Mar 31 06:55:09 EDT 2016


https://hg.python.org/cpython/rev/fb10d1f5016e
changeset: 100810:fb10d1f5016e
parent: 100808:c27e9dcad1a3
user: Martin Panter <vadmium+py at gmail.com>
date: Thu Mar 31 10:31:30 2016 +0000
summary:
 Issue #22854: Skip pipe seekable() tests on Windows
files:
 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
--- a/Lib/test/test_io.py
+++ b/Lib/test/test_io.py
@@ -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"
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /