[Python-checkins] cpython: issue27167: make the test not care about the exact signal name in the

gregory.p.smith python-checkins at python.org
Fri Jun 3 02:19:47 EDT 2016


https://hg.python.org/cpython/rev/1022d09d11e5
changeset:   101639:1022d09d11e5
user:        Gregory P. Smith <greg at krypto.org> [Google Inc.]
date:        Fri Jun 03 06:19:35 2016 +0000
summary:
  issue27167: make the test not care about the exact signal name in the
error message as some numbers map to multiple names.

files:
  Lib/test/test_subprocess.py |  4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -1433,7 +1433,9 @@
         # 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):

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list