mirror of https://github.com/python/cpython
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):
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue