diff options
author | Antoine Pietri <antoine.pietri1@gmail.com> | 2018-03-12 19:03:14 (GMT) |
---|---|---|
committer | Antoine Pitrou <pitrou@free.fr> | 2018-03-12 19:03:14 (GMT) |
commit | 019f5b3e9e4c2a1297580483c3d5a5a10bddb93b (patch) | |
tree | f0f567c646f0c432f747d126a3bedb422f508631 | |
parent | b21505e7109bafe75d87ab63d524b4e749157dbd (diff) | |
download | cpython-019f5b3e9e4c2a1297580483c3d5a5a10bddb93b.zip cpython-019f5b3e9e4c2a1297580483c3d5a5a10bddb93b.tar.gz cpython-019f5b3e9e4c2a1297580483c3d5a5a10bddb93b.tar.bz2 |
bpo-22674: fix test_strsignal on OSX (GH-6085)
-rw-r--r-- | Lib/test/test_signal.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index fbb12a5..7635eec 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): |