From 019f5b3e9e4c2a1297580483c3d5a5a10bddb93b Mon Sep 17 00:00:00 2001 From: Antoine Pietri Date: Mon, 12 Mar 2018 20:03:14 +0100 Subject: [PATCH] bpo-22674: fix test_strsignal on OSX (GH-6085) --- Lib/test/test_signal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index fbb12a5b67b..7635eec148d 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py @@ -58,8 +58,8 @@ class PosixTests(unittest.TestCase): self.assertEqual(signal.getsignal(signal.SIGHUP), hup) def test_strsignal(self): - self.assertEqual(signal.strsignal(signal.SIGINT), "Interrupt") - self.assertEqual(signal.strsignal(signal.SIGTERM), "Terminated") + self.assertIn("Interrupt", signal.strsignal(signal.SIGINT)) + self.assertIn("Terminated", signal.strsignal(signal.SIGTERM)) # Issue 3864, unknown if this affects earlier versions of freebsd also def test_interprocess_signal(self):