]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #22854: Fix logic for skipping test
authorMartin Panter <vadmium+py@gmail.com>
Thu, 31 Mar 2016 21:05:31 +0000 (21:05 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Thu, 31 Mar 2016 21:05:31 +0000 (21:05 +0000)
Lib/test/test_io.py

index f3b33f238087e3916676c1f07f35ef56cf251a60..a7bb95b243d4f68388e4cc510f1387a370354355 100644 (file)
@@ -449,7 +449,7 @@ class IOTest(unittest.TestCase):
                 else:
                     self.assertRaises(OSError, obj.write, data)
 
-                if sys.platform.startswith("win") or test in (
+                if sys.platform.startswith("win") and test in (
                         pipe_reader, pipe_writer):
                     # Pipes seem to appear as seekable on Windows
                     continue