Skip to content

Commit 23ec070

Browse files
jkuchrahunt
andauthored
test server: use set of signals
This is what signal.pthread_sigmask() really wants and matches signal.valid_signals() output Co-authored-by: Christopher Hunt <[email protected]>
1 parent dd42e7e commit 23ec070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/lib/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def blocked_signals():
4747
try:
4848
mask = signal.valid_signals()
4949
except AttributeError:
50-
mask = range(1, signal.NSIG)
50+
mask = set(range(1, signal.NSIG))
5151

5252
old_mask = signal.pthread_sigmask(signal.SIG_SETMASK, mask)
5353
try:

0 commit comments

Comments
 (0)