Skip to content

Commit ba8c6c0

Browse files
LewisGaulnedbat
authored andcommitted
Address test failures on MacOS due to lack of 'Terminated' output on SIGTERM
1 parent 2908b78 commit ba8c6c0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_concurrency.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,10 @@ def test_sigterm_threading_saves_data(self) -> None:
768768
sigterm = true
769769
""")
770770
out = self.run_command("coverage run handler.py")
771-
assert out == "START\nSIGTERM\nTerminated\n"
771+
if env.LINUX:
772+
assert out == "START\nSIGTERM\nTerminated\n"
773+
else:
774+
assert out == "START\nSIGTERM\n"
772775
out = self.run_command("coverage report -m")
773776
expected = "handler.py 5 1 80% 6"
774777
assert self.squeezed_lines(out)[2] == expected

0 commit comments

Comments
 (0)