Skip to content

Commit ebda47f

Browse files
committed
Make test_signal passing with CPython/Linux
1 parent dee3fb3 commit ebda47f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/suite/modules/system_related/test_signal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def a(b, c):
8787
for x in range(1, signal.NSIG):
8888
if x in SUPPORTED_SIGNALS: continue
8989
if is_linux and 35 <= x <= 64: continue # Real-time signals
90-
self.assertRaisesMessage(ValueError if is_windows else OSError, "invalid signal value" if is_windows else "signal number out of range",
90+
self.assertRaisesMessage(ValueError if is_windows else OSError, "invalid signal value" if is_windows else "[Errno 22] Invalid argument",
9191
signal.signal, x, a)
9292

9393
for x in [-2, -1, 0, signal.NSIG, signal.NSIG + 1, signal.NSIG + 2]:

0 commit comments

Comments
 (0)