Skip to content

Commit

Permalink
Updated String Formatting (#1528)
Browse files Browse the repository at this point in the history
  • Loading branch information
anudit authored Feb 17, 2020
1 parent 01e1e02 commit 330599f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Allan Feldman
Andrii Soldatenko
Anthon van der Neuth
Anthony Sottile
Anudit Nagar
Ashley Whetter
Asmund Grammeltwedt
Barney Gale
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_invocation_error(exit_code, os_name, mocker, monkeypatch):
elif exit_code == -15:
assert "(exited with code -15 (SIGTERM))" in result
else:
assert "(exited with code %d)" % exit_code in result
assert "(exited with code {})".format(exit_code) in result
note = "Note: this might indicate a fatal error signal"
if (os_name == "posix") and (exit_code == 128 + signal.SIGTERM):
assert note in result
Expand Down

0 comments on commit 330599f

Please sign in to comment.