]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-124083: Skip test_signal.test_strsignal() on NetBSD (GH-124084) (#124224)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 18 Sep 2024 21:47:18 +0000 (23:47 +0200)
committerGitHub <noreply@github.com>
Wed, 18 Sep 2024 21:47:18 +0000 (21:47 +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>
Lib/test/test_signal.py

index c7b9549dd3a828848a9175cad7aa9aedc335f9fc..a45527d7315dfc72ed0ba33abd26909ff71a8990 100644 (file)
@@ -122,6 +122,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))