From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 18 Sep 2024 21:47:18 +0000 (+0200) Subject: [3.12] gh-124083: Skip test_signal.test_strsignal() on NetBSD (GH-124084) (#124224) X-Git-Tag: v3.12.7~77 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a82a2f1597cdd2f791d0e39fb4fd43f38b6b4186;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-124083: Skip test_signal.test_strsignal() on NetBSD (GH-124084) (#124224) 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 --- diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index c7b9549dd3a8..a45527d7315d 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -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))