0
0
mirror of https://github.com/python/cpython.git synced 2024-11-21 12:59:38 +01:00

gh-124083: Skip test_signal.test_strsignal() on NetBSD (#124084)

Skip test_strsignal() on NetBSD due to TypeError.
This commit is contained in:
Furkan Onder 2024-09-19 00:22:00 +03:00 committed by GitHub
parent 9a6e2336e4
commit 36682c0914
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View 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))