Issue #18238: Skip test_signal.test_sigwaitinfo_interrupted() on AIX

sigwaitinfo() can be interrupted on Linux (raises InterruptedError), but not on
AIX.
This commit is contained in:
Victor Stinner 2013-06-17 21:51:56 +02:00
parent 934676afba
commit 91f9bdd773
1 changed files with 4 additions and 0 deletions

View File

@ -705,6 +705,10 @@ class PendingSignalsTests(unittest.TestCase):
@unittest.skipUnless(hasattr(signal, 'sigwaitinfo'),
'need signal.sigwaitinfo()')
# Issue #18238: sigwaitinfo() can be interrupted on Linux (raises
# InterruptedError), but not on AIX
@unittest.skipIf(sys.platform.startswith("aix"),
'signal.sigwaitinfo() cannot be interrupted on AIX')
def test_sigwaitinfo_interrupted(self):
self.wait_helper(signal.SIGUSR1, '''
def test(signum):