Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:Update
python-coverage
fix-tests.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-tests.patch of Package python-coverage
Index: coverage-7.2.5/tests/test_concurrency.py =================================================================== --- coverage-7.2.5.orig/tests/test_concurrency.py +++ coverage-7.2.5/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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor