]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-64783: Don't check value of SIG_DFL and SIG_IGN (#92350)
authorChristian Heimes <christian@python.org>
Thu, 5 May 2022 22:07:53 +0000 (00:07 +0200)
committerGitHub <noreply@github.com>
Thu, 5 May 2022 22:07:53 +0000 (00:07 +0200)
Lib/test/test_signal.py

index d38992db7b84d22503a88dea92dc7775cb1f0ae0..2ba29fc837d449f8e0b99d1f2dc4fa5cd2310944 100644 (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)