Skip to content

Commit ad6c2ae

Browse files
committed
Disable two tests on macOS which read from pipes
reported to be unstable one of these is disabled in asyncio
1 parent 5b4e768 commit ad6c2ae

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

tests/python/test_events.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,9 +1460,7 @@ def connect():
14601460
write_transport._pipe = None
14611461

14621462
@unittest.skipUnless(sys.platform != 'win32', "Don't support pipes for Windows")
1463-
# select, poll and kqueue don't support character devices (PTY) on Mac OS X
1464-
# older than 10.6 (Snow Leopard)
1465-
@support.requires_mac_ver(10, 6)
1463+
@unittest.skipIf(sys.platform == 'darwin', 'test hangs on MacOS')
14661464
# Issue #20495: The test hangs on FreeBSD 7.2 but pass on FreeBSD 9
14671465
@support.requires_freebsd_version(8)
14681466
def test_read_pty_output(self):
@@ -1600,9 +1598,7 @@ def reader(data):
16001598
self.assertEqual('CLOSED', proto.state)
16011599

16021600
@unittest.skipUnless(sys.platform != 'win32', "Don't support pipes for Windows")
1603-
# select, poll and kqueue don't support character devices (PTY) on Mac OS X
1604-
# older than 10.6 (Snow Leopard)
1605-
@support.requires_mac_ver(10, 6)
1601+
@unittest.skipIf(sys.platform == 'darwin', 'test may hang on MacOS')
16061602
def test_bidirectional_pty(self):
16071603
master, read_slave = os.openpty()
16081604
write_slave = os.dup(read_slave)

0 commit comments

Comments
 (0)