Issue #22854: Skip pipe seekable() tests on Windows
This commit is contained in:
parent
047f3b7376
commit
c0aab1da3b
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue