From: Christian Heimes Date: Thu, 5 May 2022 22:07:53 +0000 (+0200) Subject: gh-64783: Don't check value of SIG_DFL and SIG_IGN (#92350) X-Git-Tag: v3.11.0b1~35 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c0012df0f6535cc804d5d97be9b16482e4e0c2a5;p=thirdparty%2FPython%2Fcpython.git gh-64783: Don't check value of SIG_DFL and SIG_IGN (#92350) --- diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index d38992db7b84..2ba29fc837d4 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)