diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-02-06 08:35:53 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-02-06 11:09:53 -0500 |
commit | cd8ab84eee0569a31bb7f2f967eb80deb32eb590 (patch) | |
tree | 854d5c5bbf69497b8a9292ad0a3817d1a8e95cf4 | |
parent | 375b4ae48def9734b6c93fdbf2bc99d684e2457d (diff) | |
download | python-coveragepy-git-cd8ab84eee0569a31bb7f2f967eb80deb32eb590.tar.gz |
doc, test: clean up from 'better tracing of pytracer changed'
Commit d35e8c4624bd074c4e55a8e8a33c343f734299db changed the message, but the
docs and tests weren't updated.
-rw-r--r-- | doc/cmd.rst | 3 | ||||
-rw-r--r-- | tests/test_oddball.py | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/doc/cmd.rst b/doc/cmd.rst index 9b710a3e..461021b1 100644 --- a/doc/cmd.rst +++ b/doc/cmd.rst @@ -236,8 +236,7 @@ could affect the measurement process. The possible warnings include: During reporting, a file was thought to be Python, but it couldn't be parsed as Python. -* ``Trace function changed, measurement is likely wrong: XXX (trace-changed)`` - |br| +* ``Trace function changed, data is likely wrong: XXX (trace-changed)`` |br| Coverage measurement depends on a Python setting called the trace function. Other Python code in your product might change that function, which will disrupt coverage.py's measurement. This warning indicates that has happened. diff --git a/tests/test_oddball.py b/tests/test_oddball.py index 9536c121..703e8187 100644 --- a/tests/test_oddball.py +++ b/tests/test_oddball.py @@ -83,7 +83,7 @@ class RecursionTest(CoverageTest): def test_long_recursion(self): # We can't finish a very deep recursion, but we don't crash. with pytest.raises(RuntimeError): - with swallow_warnings("Trace function changed, measurement is likely wrong: None"): + with swallow_warnings("Trace function changed, data is likely wrong: None"): self.check_coverage("""\ def recur(n): if n == 0: @@ -120,7 +120,7 @@ class RecursionTest(CoverageTest): """) cov = coverage.Coverage() - with swallow_warnings("Trace function changed, measurement is likely wrong: None"): + with swallow_warnings("Trace function changed, data is likely wrong: None"): self.start_import_stop(cov, "recur") pytrace = (cov._collector.tracer_name() == "PyTracer") |