summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-05-05 22:07:53 (GMT)
committerGitHub <noreply@github.com>2022-05-05 22:07:53 (GMT)
commitc0012df0f6535cc804d5d97be9b16482e4e0c2a5 (patch)
tree5570b717280c5cf7b856a2de9aac80b94b3fda41
parent8122e8d5017be9f0683a49bc20d3c82e8b5398d6 (diff)
downloadcpython-c0012df0f6535cc804d5d97be9b16482e4e0c2a5.zip
cpython-c0012df0f6535cc804d5d97be9b16482e4e0c2a5.tar.gz
cpython-c0012df0f6535cc804d5d97be9b16482e4e0c2a5.tar.bz2
gh-64783: Don't check value of SIG_DFL and SIG_IGN (#92350)
-rw-r--r--Lib/test/test_signal.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py
index d38992d..2ba29fc 100644
--- a/Lib/test/test_signal.py
+++ b/Lib/test/test_signal.py
@@ -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)