summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-27 13:32:22 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-27 13:32:22 (GMT)
commit59f6342c97cd369ec91893934c7b0a962b30c250 (patch)
treed64605612049038eefd181e461a3b6a50886fc5e /Lib
parenteb352295fd8ceeaa19a72a4b3f7e7ad47676827c (diff)
downloadcpython-59f6342c97cd369ec91893934c7b0a962b30c250.zip
cpython-59f6342c97cd369ec91893934c7b0a962b30c250.tar.gz
cpython-59f6342c97cd369ec91893934c7b0a962b30c250.tar.bz2
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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/eintrdata/eintr_tester.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/eintrdata/eintr_tester.py b/Lib/test/eintrdata/eintr_tester.py
index c522771..ba056fb 100644
--- a/Lib/test/eintrdata/eintr_tester.py
+++ b/Lib/test/eintrdata/eintr_tester.py
@@ -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)