]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #20472: test_asyncio: skip PTY tests on Mac OS X older than 10.6
authorVictor Stinner <victor.stinner@gmail.com>
Sun, 2 Feb 2014 23:32:13 +0000 (00:32 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Sun, 2 Feb 2014 23:32:13 +0000 (00:32 +0100)
Lib/test/test_asyncio/test_events.py

index 24808cb11c773b10d5df3021b7a6450c97e64c2e..5158430fced6676cb4380ea23b2d25a9f532e59a 100644 (file)
@@ -953,6 +953,9 @@ 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)
     def test_read_pty_output(self):
         proto = None
 
@@ -1075,6 +1078,9 @@ 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)
     def test_write_pty(self):
         proto = None
         transport = None