Skip to content

Commit c0012df

Browse files
authored
gh-64783: Don't check value of SIG_DFL and SIG_IGN (#92350)
1 parent 8122e8d commit c0012df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_signal.py

+3
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ def test_valid_signals(self):
121121
for name in dir(signal):
122122
if not name.startswith("SIG"):
123123
continue
124+
if name in {"SIG_IGN", "SIG_DFL"}:
125+
# SIG_IGN and SIG_DFL are pointers
126+
continue
124127
with self.subTest(name=name):
125128
signum = getattr(signal, name)
126129
self.assertGreaterEqual(signum, 0)

0 commit comments

Comments
 (0)