Skip to content

Commit 4af8eeb

Browse files
Skip coverage tracer import test on FreeBSD
There is no pre-built coverage wheel for FreeBSD on PyPI, so python-rules' built-in test runners have to fall back on the pure-Python tracing implementation on FreeBSD. Don't run the `tracer` import test in `//test:python3_coverage_test` on FreeBSD - we expect it to fail. Fixes #274.
1 parent 8d700a3 commit 4af8eeb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/python_coverage_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def test_can_import_coverage(self):
2121
import coverage
2222
self.assertIsNotNone(coverage)
2323

24+
@unittest.skipIf(sys.platform.startswith("freebsd"), "built-in test runners do not contain a tracer module compatible with this platform")
2425
def test_can_import_tracer(self):
2526
"""Test we can import the binary tracer module."""
2627
from coverage import tracer

0 commit comments

Comments
 (0)