mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
issue27167: make the test not care about the exact signal name in the
error message as some numbers map to multiple names.
This commit is contained in:
parent
d6da7604d3
commit
b414906f93
1 changed files with 3 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue