[Python-checkins] bpo-22674: fix test_strsignal on OSX (GH-6085)

Antoine Pitrou webhook-mailer at python.org
Mon Mar 12 15:03:17 EDT 2018


https://github.com/python/cpython/commit/019f5b3e9e4c2a1297580483c3d5a5a10bddb93b
commit: 019f5b3e9e4c2a1297580483c3d5a5a10bddb93b
branch: master
author: Antoine Pietri <antoine.pietri1 at gmail.com>
committer: Antoine Pitrou <pitrou at free.fr>
date: 2018-03-12T20:03:14+01:00
summary:

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

files:
M Lib/test/test_signal.py

diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py
index fbb12a5b67bf..7635eec148d8 100644
--- a/Lib/test/test_signal.py
+++ b/Lib/test/test_signal.py
@@ -58,8 +58,8 @@ def test_getsignal(self):
         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):



More information about the Python-checkins mailing list