diff options
author | Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org> | 2016-06-03 06:19:35 (GMT) |
---|---|---|
committer | Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org> | 2016-06-03 06:19:35 (GMT) |
commit | b414906f9399fc3ca60abab9e7f0dba5ba4c4b30 (patch) | |
tree | a5967b27f46cf4074e691a935f0cd1e9b93b9714 /Lib/test/test_subprocess.py | |
parent | d6da7604d3eb19635f27e3d2d66e5a973cc26266 (diff) | |
download | cpython-b414906f9399fc3ca60abab9e7f0dba5ba4c4b30.zip cpython-b414906f9399fc3ca60abab9e7f0dba5ba4c4b30.tar.gz cpython-b414906f9399fc3ca60abab9e7f0dba5ba4c4b30.tar.bz2 |
issue27167: make the test not care about the exact signal name in the
error message as some numbers map to multiple names.
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r-- | 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 index 8a2352b..cb0e292 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -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): |