Issue #22854: Skip pipe seekable() tests on Windows
This commit is contained in:
parent
047f3b7376
commit
c0aab1da3b
|
@ -425,6 +425,11 @@ class IOTest(unittest.TestCase):
|
|||
writable = "w" in abilities
|
||||
self.assertEqual(obj.writable(), writable)
|
||||
seekable = "s" in abilities
|
||||
|
||||
# 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):
|
||||
|
|
Loading…
Reference in New Issue