bpo-22674: fix test_strsignal on OSX (GH-6085)

This commit is contained in:
Antoine Pietri 2018-03-12 20:03:14 +01:00 committed by Antoine Pitrou
parent b21505e710
commit 019f5b3e9e
1 changed files with 2 additions and 2 deletions

View File

@ -58,8 +58,8 @@ class PosixTests(unittest.TestCase):
self.assertEqual(signal.getsignal(signal.SIGHUP), hup) self.assertEqual(signal.getsignal(signal.SIGHUP), hup)
def test_strsignal(self): def test_strsignal(self):
self.assertEqual(signal.strsignal(signal.SIGINT), "Interrupt") self.assertIn("Interrupt", signal.strsignal(signal.SIGINT))
self.assertEqual(signal.strsignal(signal.SIGTERM), "Terminated") self.assertIn("Terminated", signal.strsignal(signal.SIGTERM))
# Issue 3864, unknown if this affects earlier versions of freebsd also # Issue 3864, unknown if this affects earlier versions of freebsd also
def test_interprocess_signal(self): def test_interprocess_signal(self):