diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2023-02-13 18:29:25 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-02-14 05:32:26 -0500 |
commit | 026d924e6d9449c632b1fec0c1f82f4f867e9724 (patch) | |
tree | 0a4c114ab7fceed7e2b67078105140541ea0457d /tests | |
parent | d06ace282bf26c5c7f3becb21db0cdd028ec0d9a (diff) | |
download | python-coveragepy-git-026d924e6d9449c632b1fec0c1f82f4f867e9724.tar.gz |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_oddball.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 |