]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-124083: Skip test_signal.test_strsignal() on NetBSD (#124084)
authorFurkan Onder <furkanonder@protonmail.com>
Wed, 18 Sep 2024 21:22:00 +0000 (00:22 +0300)
committerGitHub <noreply@github.com>
Wed, 18 Sep 2024 21:22:00 +0000 (21:22 +0000)
Skip test_strsignal() on NetBSD due to TypeError.

Lib/test/test_signal.py

index da36b8576be1ad1e546f7f41c3a707b8150c061a..704a0090bdbc0fac2bcebd6c5306666650e317ab 100644 (file)
@@ -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))