Skip to content

Commit

Permalink
gh-64783: Don't check value of SIG_DFL and SIG_IGN (#92350)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiran committed May 5, 2022
1 parent 8122e8d commit c0012df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lib/test/test_signal.py
Expand Up @@ -121,6 +121,9 @@ def test_valid_signals(self):
for name in dir(signal):
if not name.startswith("SIG"):
continue
if name in {"SIG_IGN", "SIG_DFL"}:
# SIG_IGN and SIG_DFL are pointers
continue
with self.subTest(name=name):
signum = getattr(signal, name)
self.assertGreaterEqual(signum, 0)
Expand Down

0 comments on commit c0012df

Please sign in to comment.