gh-64783: Don't check value of SIG_DFL and SIG_IGN (#92350)
This commit is contained in:
parent
8122e8d501
commit
c0012df0f6
@ -121,6 +121,9 @@ class PosixTests(unittest.TestCase):
|
|||||||
for name in dir(signal):
|
for name in dir(signal):
|
||||||
if not name.startswith("SIG"):
|
if not name.startswith("SIG"):
|
||||||
continue
|
continue
|
||||||
|
if name in {"SIG_IGN", "SIG_DFL"}:
|
||||||
|
# SIG_IGN and SIG_DFL are pointers
|
||||||
|
continue
|
||||||
with self.subTest(name=name):
|
with self.subTest(name=name):
|
||||||
signum = getattr(signal, name)
|
signum = getattr(signal, name)
|
||||||
self.assertGreaterEqual(signum, 0)
|
self.assertGreaterEqual(signum, 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user