From 36682c091407dc9c7e750c22fb71e62466952662 Mon Sep 17 00:00:00 2001 From: Furkan Onder Date: Thu, 19 Sep 2024 00:22:00 +0300 Subject: [PATCH] gh-124083: Skip test_signal.test_strsignal() on NetBSD (#124084) Skip test_strsignal() on NetBSD due to TypeError. --- Lib/test/test_signal.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index da36b8576be..704a0090bdb 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -123,6 +123,8 @@ class PosixTests(unittest.TestCase): self.assertEqual(signal.getsignal(signal.SIGHUP), hup) self.assertEqual(0, argument.repr_count) + @unittest.skipIf(sys.platform.startswith("netbsd"), + "gh-124083: strsignal is not supported on NetBSD") def test_strsignal(self): self.assertIn("Interrupt", signal.strsignal(signal.SIGINT)) self.assertIn("Terminated", signal.strsignal(signal.SIGTERM))