Skip to content

Commit cd8ab84

Browse files
committed
doc, test: clean up from 'better tracing of pytracer changed'
Commit d35e8c4 changed the message, but the docs and tests weren't updated.
1 parent 375b4ae commit cd8ab84

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

doc/cmd.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,7 @@ could affect the measurement process. The possible warnings include:
236236
During reporting, a file was thought to be Python, but it couldn't be parsed
237237
as Python.
238238

239-
* ``Trace function changed, measurement is likely wrong: XXX (trace-changed)``
240-
|br|
239+
* ``Trace function changed, data is likely wrong: XXX (trace-changed)`` |br|
241240
Coverage measurement depends on a Python setting called the trace function.
242241
Other Python code in your product might change that function, which will
243242
disrupt coverage.py's measurement. This warning indicates that has happened.

tests/test_oddball.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def recur(n):
8383
def test_long_recursion(self):
8484
# We can't finish a very deep recursion, but we don't crash.
8585
with pytest.raises(RuntimeError):
86-
with swallow_warnings("Trace function changed, measurement is likely wrong: None"):
86+
with swallow_warnings("Trace function changed, data is likely wrong: None"):
8787
self.check_coverage("""\
8888
def recur(n):
8989
if n == 0:
@@ -120,7 +120,7 @@ def recur(n):
120120
""")
121121

122122
cov = coverage.Coverage()
123-
with swallow_warnings("Trace function changed, measurement is likely wrong: None"):
123+
with swallow_warnings("Trace function changed, data is likely wrong: None"):
124124
self.start_import_stop(cov, "recur")
125125

126126
pytrace = (cov._collector.tracer_name() == "PyTracer")

0 commit comments

Comments
 (0)