Skip to content

Commit

Permalink
[3.13] pythongh-124083: Skip test_signal.test_strsignal() on NetBSD (p…
Browse files Browse the repository at this point in the history
…ythonGH-124084) (python#124223)

pythongh-124083: Skip test_signal.test_strsignal() on NetBSD (pythonGH-124084)

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

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Co-authored-by: T. Wouters <thomas@python.org>
  • Loading branch information
3 people authored Sep 24, 2024
1 parent e9b531d commit 2cf67d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/test/test_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ def __repr__(self):
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))
Expand Down

0 comments on commit 2cf67d3

Please sign in to comment.