]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
issue27167: make the test not care about the exact signal name in the
authorGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>
Fri, 3 Jun 2016 06:19:35 +0000 (06:19 +0000)
committerGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>
Fri, 3 Jun 2016 06:19:35 +0000 (06:19 +0000)
error message as some numbers map to multiple names.

Lib/test/test_subprocess.py

index 8a2352bf9549b9376a38510d9463353a20dbd03a..cb0e2927debd33b0b61ef5a67c53cdd648e03e58 100644 (file)
@@ -1433,7 +1433,9 @@ class POSIXProcessTestCase(BaseTestCase):
         # We're relying on the repr() of the signal.Signals intenum to provide
         # the word signal, the signal name and the numeric value.
         self.assertIn("signal", error_string.lower())
-        self.assertIn("SIGABRT", error_string)
+        # We're not being specific about the signal name as some signals have
+        # multiple names and which name is revealed can vary.
+        self.assertIn("SIG", error_string)
         self.assertIn(str(signal.SIGABRT), error_string)
 
     def test_CalledProcessError_str_unknown_signal(self):