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

tiran webhook-mailer at python.org
Thu May 5 18:08:06 EDT 2022


https://github.com/python/cpython/commit/c0012df0f6535cc804d5d97be9b16482e4e0c2a5
commit: c0012df0f6535cc804d5d97be9b16482e4e0c2a5
branch: main
author: Christian Heimes <christian at python.org>
committer: tiran <christian at python.org>
date: 2022-05-06T00:07:53+02:00
summary:

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

files:
M Lib/test/test_signal.py

diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py
index d38992db7b84d..2ba29fc837d44 100644
--- a/Lib/test/test_signal.py
+++ b/Lib/test/test_signal.py
@@ -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)



More information about the Python-checkins mailing list