From c0012df0f6535cc804d5d97be9b16482e4e0c2a5 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Fri, 6 May 2022 00:07:53 +0200 Subject: gh-64783: Don't check value of SIG_DFL and SIG_IGN (#92350) --- Lib/test/test_signal.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v0.12