diff options
Diffstat (limited to 'tests/test_debug.py')
-rw-r--r-- | tests/test_debug.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_debug.py b/tests/test_debug.py index 50f191c6..4250c21c 100644 --- a/tests/test_debug.py +++ b/tests/test_debug.py @@ -124,8 +124,10 @@ class DebugTraceTest(CoverageTest): def test_debug_trace(self): out_lines = self.f1_debug_output(["trace"]) - # We should have a line like "Tracing 'f1.py'" - assert "Tracing 'f1.py'" in out_lines + # We should have a line like "Tracing 'f1.py'", perhaps with an + # absolute path. + f1 = re_lines(out_lines, r"Tracing '.*f1.py'") + assert f1 # We should have lines like "Not tracing 'collector.py'..." coverage_lines = re_lines( |