summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-03-12 11:28:49 -0400
committerNed Batchelder <ned@nedbatchelder.com>2023-03-12 11:46:22 -0400
commitd276fa4f5a20dc3eb4dbf18bf4b8898fb3e24a79 (patch)
tree9bce43979997aaa404924b85910932ec53dde7b3
parentd76daad2f184a0c9ec4dc8e80e4ca20ea9e39d7c (diff)
downloadpython-coveragepy-git-d276fa4f5a20dc3eb4dbf18bf4b8898fb3e24a79.tar.gz
debug: label the assert messages
-rw-r--r--tests/coveragetest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py
index cec565ef..9d1ef06f 100644
--- a/tests/coveragetest.py
+++ b/tests/coveragetest.py
@@ -202,7 +202,7 @@ class CoverageTest(
if isinstance(lines[0], int):
# lines is just a list of numbers, it must match the statements
# found in the code.
- assert statements == lines, f"{statements!r} != {lines!r}"
+ assert statements == lines, f"lines: {statements!r} != {lines!r}"
else:
# lines is a list of possible line number lists, one of them
# must match.
@@ -214,7 +214,7 @@ class CoverageTest(
missing_formatted = analysis.missing_formatted()
if isinstance(missing, str):
- msg = f"{missing_formatted!r} != {missing!r}"
+ msg = f"missing: {missing_formatted!r} != {missing!r}"
assert missing_formatted == missing, msg
else:
for missing_list in missing: