gh-64783: Don't check value of SIG_DFL and SIG_IGN (#92350)

This commit is contained in:
Christian Heimes 2022-05-06 00:07:53 +02:00 committed by GitHub
parent 8122e8d501
commit c0012df0f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -121,6 +121,9 @@ class PosixTests(unittest.TestCase):
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)