From 4af8eeb94f88bc9da84c709d6b49b358db75d6bd Mon Sep 17 00:00:00 2001 From: Chris Novakovic Date: Mon, 17 Nov 2025 10:29:16 +0000 Subject: [PATCH] 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. --- test/python_coverage_test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/python_coverage_test.py b/test/python_coverage_test.py index 126fbda..0d436e7 100644 --- a/test/python_coverage_test.py +++ b/test/python_coverage_test.py @@ -21,6 +21,7 @@ def test_can_import_coverage(self): import coverage self.assertIsNotNone(coverage) + @unittest.skipIf(sys.platform.startswith("freebsd"), "built-in test runners do not contain a tracer module compatible with this platform") def test_can_import_tracer(self): """Test we can import the binary tracer module.""" from coverage import tracer