Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 91f9bdd

Browse files
committed
Issue #18238: Skip test_signal.test_sigwaitinfo_interrupted() on AIX
sigwaitinfo() can be interrupted on Linux (raises InterruptedError), but not on AIX.
1 parent 934676a commit 91f9bdd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Lib/test/test_signal.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,10 @@ def test_sigtimedwait_negative_timeout(self):
705705

706706
@unittest.skipUnless(hasattr(signal, 'sigwaitinfo'),
707707
'need signal.sigwaitinfo()')
708+
# Issue #18238: sigwaitinfo() can be interrupted on Linux (raises
709+
# InterruptedError), but not on AIX
710+
@unittest.skipIf(sys.platform.startswith("aix"),
711+
'signal.sigwaitinfo() cannot be interrupted on AIX')
708712
def test_sigwaitinfo_interrupted(self):
709713
self.wait_helper(signal.SIGUSR1, '''
710714
def test(signum):

0 commit comments

Comments
 (0)