mirror of
https://github.com/python/cpython.git
synced 2025-09-14 20:56:06 +00:00
(Merge 3.3) 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:
commit
3f41c64ba0
1 changed files with 4 additions and 0 deletions
|
@ -702,6 +702,10 @@ class PendingSignalsTests(unittest.TestCase):
|
||||||
|
|
||||||
@unittest.skipUnless(hasattr(signal, 'sigwaitinfo'),
|
@unittest.skipUnless(hasattr(signal, 'sigwaitinfo'),
|
||||||
'need 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):
|
def test_sigwaitinfo_interrupted(self):
|
||||||
self.wait_helper(signal.SIGUSR1, '''
|
self.wait_helper(signal.SIGUSR1, '''
|
||||||
def test(signum):
|
def test(signum):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue