diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-08 21:27:45 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-08 21:27:45 -0400 |
commit | 06cb51b39620e2140f915393f0f41b281594e05b (patch) | |
tree | 7c096a0d54e9d643497b38a6e25222ae34dd3edd /tests/test_debug.py | |
parent | 1c518ca670457f3bb1b16b67562e4d9ba9fc9875 (diff) | |
download | python-coveragepy-git-06cb51b39620e2140f915393f0f41b281594e05b.tar.gz |
test: traced file names seem to be absolute now? #1161
This was changed in 3.10.0b1 and 3.9.5. Seems like a strange change to
throw into 3.9.5, but there it is. Fixes #1161.
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( |