]> granicus.if.org Git - python/commitdiff
Skip test_read_pty_output test on macOS for poll and select. (#4774)
authorYury Selivanov <yury@magic.io>
Sun, 10 Dec 2017 17:40:19 +0000 (12:40 -0500)
committerGitHub <noreply@github.com>
Sun, 10 Dec 2017 17:40:19 +0000 (12:40 -0500)
Starting with 10.13.2 the test hangs forever.

Lib/test/test_asyncio/test_events.py

index 2e8f46dd41e3e1022a8bd0ef04d9b0b111b1b0c0..01300246fda5907390c80a2feb5692abbcf6a6bf 100644 (file)
@@ -1486,9 +1486,7 @@ class EventLoopTestsMixin:
 
     @unittest.skipUnless(sys.platform != 'win32',
                          "Don't support pipes for Windows")
-    # select, poll and kqueue don't support character devices (PTY) on Mac OS X
-    # older than 10.6 (Snow Leopard)
-    @support.requires_mac_ver(10, 6)
+    @unittest.skipIf(sys.platform == 'darwin', 'test hangs on MacOS')
     # Issue #20495: The test hangs on FreeBSD 7.2 but pass on FreeBSD 9
     @support.requires_freebsd_version(8)
     def test_read_pty_output(self):