File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -236,8 +236,7 @@ could affect the measurement process. The possible warnings include:
236
236
During reporting, a file was thought to be Python, but it couldn't be parsed
237
237
as Python.
238
238
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 |
241
240
Coverage measurement depends on a Python setting called the trace function.
242
241
Other Python code in your product might change that function, which will
243
242
disrupt coverage.py's measurement. This warning indicates that has happened.
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ def recur(n):
83
83
def test_long_recursion (self ):
84
84
# We can't finish a very deep recursion, but we don't crash.
85
85
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" ):
87
87
self .check_coverage ("""\
88
88
def recur(n):
89
89
if n == 0:
@@ -120,7 +120,7 @@ def recur(n):
120
120
""" )
121
121
122
122
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" ):
124
124
self .start_import_stop (cov , "recur" )
125
125
126
126
pytrace = (cov ._collector .tracer_name () == "PyTracer" )
You can’t perform that action at this time.
0 commit comments