Skip to content

Commit

Permalink
Address test failures on MacOS due to lack of 'Terminated' output on …
Browse files Browse the repository at this point in the history
…SIGTERM
  • Loading branch information
LewisGaul committed Apr 2, 2023
1 parent a8acbcf commit 47f1eb5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_concurrency.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,10 @@ def test_sigterm_threading_saves_data(self) -> None:
sigterm = true
""")
out = self.run_command("coverage run handler.py")
assert out == "START\nSIGTERM\nTerminated\n"
if env.LINUX:
assert out == "START\nSIGTERM\nTerminated\n"
else:
assert out == "START\nSIGTERM\n"
out = self.run_command("coverage report -m")
expected = "handler.py 5 1 80% 6"
assert self.squeezed_lines(out)[2] == expected
Expand Down

0 comments on commit 47f1eb5

Please sign in to comment.