]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-124083: Skip test_signal.test_strsignal() on NetBSD (GH-124084) (#124223)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 24 Sep 2024 00:35:14 +0000 (02:35 +0200)
committerGitHub <noreply@github.com>
Tue, 24 Sep 2024 00:35:14 +0000 (00:35 +0000)
gh-124083: Skip test_signal.test_strsignal() on NetBSD (GH-124084)

Skip test_strsignal() on NetBSD due to TypeError.
(cherry picked from commit 36682c091407dc9c7e750c22fb71e62466952662)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Co-authored-by: T. Wouters <thomas@python.org>
Lib/test/test_signal.py

index 591cd4177d9f41bb84fc992fd3777b137201ef69..8101322347edc700aecc222da7c2082b4e65728f 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))