bpo-31904: Skip some asyncio tests on VxWorks (#23815) · python/cpython@ba760f3
@@ -22,7 +22,7 @@
2222from unittest import mock
2323import weakref
242425-if sys.platform != 'win32':
25+if sys.platform not in ('win32', 'vxworks'):
2626import tty
27272828import asyncio
@@ -465,6 +465,8 @@ def my_handler():
465465self.assertFalse(self.loop.remove_signal_handler(signal.SIGINT))
466466467467@unittest.skipUnless(hasattr(signal, 'SIGALRM'), 'No SIGALRM')
468+@unittest.skipUnless(hasattr(signal, 'setitimer'),
469+ 'need signal.setitimer()')
468470def test_signal_handling_while_selecting(self):
469471# Test with a signal actually arriving during a select() call.
470472caught = 0
@@ -482,6 +484,8 @@ def my_handler():
482484self.assertEqual(caught, 1)
483485484486@unittest.skipUnless(hasattr(signal, 'SIGALRM'), 'No SIGALRM')
487+@unittest.skipUnless(hasattr(signal, 'setitimer'),
488+ 'need signal.setitimer()')
485489def test_signal_handling_args(self):
486490some_args = (42,)
487491caught = 0
@@ -1371,6 +1375,7 @@ async def connect():
1371137513721376@unittest.skipUnless(sys.platform != 'win32',
13731377 "Don't support pipes for Windows")
1378+@unittest.skipUnless(hasattr(os, 'openpty'), 'need os.openpty()')
13741379def test_read_pty_output(self):
13751380proto = MyReadPipeProto(loop=self.loop)
13761381@@ -1468,6 +1473,7 @@ def test_write_pipe_disconnect_on_close(self):
1468147314691474@unittest.skipUnless(sys.platform != 'win32',
14701475 "Don't support pipes for Windows")
1476+@unittest.skipUnless(hasattr(os, 'openpty'), 'need os.openpty()')
14711477# select, poll and kqueue don't support character devices (PTY) on Mac OS X
14721478# older than 10.6 (Snow Leopard)
14731479@support.requires_mac_ver(10, 6)
@@ -1512,6 +1518,7 @@ def reader(data):
1512151815131519@unittest.skipUnless(sys.platform != 'win32',
15141520 "Don't support pipes for Windows")
1521+@unittest.skipUnless(hasattr(os, 'openpty'), 'need os.openpty()')
15151522# select, poll and kqueue don't support character devices (PTY) on Mac OS X
15161523# older than 10.6 (Snow Leopard)
15171524@support.requires_mac_ver(10, 6)