diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index d38992db7b8..2ba29fc837d 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)