diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2023-05-02 15:16:12 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-05-02 15:16:12 -0400 |
commit | 3fdda7d017ffaafa6459bb400b1aeae8a3b1f26e (patch) | |
tree | a8f4bd8eabd2278693a66875d9859507f59c6a4d /tests | |
parent | 70ad079f4437359b9f198da925a6f659bf2eaddc (diff) | |
download | python-coveragepy-git-3fdda7d017ffaafa6459bb400b1aeae8a3b1f26e.tar.gz |
test: Linuxes can vary; make this test more flexible
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_concurrency.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py index a9b64d15..07c76ce2 100644 --- a/tests/test_concurrency.py +++ b/tests/test_concurrency.py @@ -768,10 +768,11 @@ class SigtermTest(CoverageTest): sigterm = true """) out = self.run_command("coverage run handler.py") - if env.LINUX: - assert out == "START\nSIGTERM\nTerminated\n" - else: - assert out == "START\nSIGTERM\n" + out_lines = out.splitlines() + assert len(out_lines) in [2, 3] + assert out_lines[:2] == ["START", "SIGTERM"] + if len(out_lines) == 3: + assert out_lines[2] == "Terminated" out = self.run_command("coverage report -m") expected = "handler.py 5 1 80% 6" assert self.squeezed_lines(out)[2] == expected |