From 026d924e6d9449c632b1fec0c1f82f4f867e9724 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 13 Feb 2023 18:29:25 -0500 Subject: refactor: no placebos, use true Optional For objects that truly might not exist, use Optional. Some objects will always exist eventually, and for those we have some null implementation standins to use without making new placebo classes. --- tests/test_oddball.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/test_oddball.py b/tests/test_oddball.py index e4147dc6..2bcb4276 100644 --- a/tests/test_oddball.py +++ b/tests/test_oddball.py @@ -124,6 +124,7 @@ class RecursionTest(CoverageTest): with swallow_warnings("Trace function changed, data is likely wrong: None"): self.start_import_stop(cov, "recur") + assert cov._collector is not None pytrace = (cov._collector.tracer_name() == "PyTracer") expected_missing = [3] if pytrace: # pragma: no metacov -- cgit v1.2.1