[Python-checkins] Skip test_read_pty_output test on macOS for poll and select. (#4774)

Yury Selivanov webhook-mailer at python.org
Sun Dec 10 12:40:21 EST 2017


https://github.com/python/cpython/commit/c4d9df5fd719ad08e68e0950ce22a80f43e4f35d
commit: c4d9df5fd719ad08e68e0950ce22a80f43e4f35d
branch: master
author: Yury Selivanov <yury at magic.io>
committer: GitHub <noreply at github.com>
date: 2017-12-10T12:40:19-05:00
summary:

Skip test_read_pty_output test on macOS for poll and select. (#4774)

Starting with 10.13.2 the test hangs forever.

files:
M Lib/test/test_asyncio/test_events.py

diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py
index 2e8f46dd41e..01300246fda 100644
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -1486,9 +1486,7 @@ def test_unclosed_pipe_transport(self):
 
     @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):



More information about the Python-checkins mailing list