mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #23715: Fix test_sigtimedwait() of test_eintr
sigtimedwait([], timeout) fails with OSError(EINVAL) on OpenIndiana, wait for a signal which will never be received instead.
This commit is contained in:
parent
eb352295fd
commit
59f6342c97
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ class SignalEINTRTest(EINTRBaseTest):
|
|||
'need signal.sigtimedwait()')
|
||||
def test_sigtimedwait(self):
|
||||
t0 = time.monotonic()
|
||||
signal.sigtimedwait([], self.sleep_time)
|
||||
signal.sigtimedwait([signal.SIGUSR1], self.sleep_time)
|
||||
dt = time.monotonic() - t0
|
||||
self.assertGreaterEqual(dt, self.sleep_time)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue