Skip to content

Commit d276fa4

Browse files
committed
debug: label the assert messages
1 parent d76daad commit d276fa4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/coveragetest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def check_coverage(
202202
if isinstance(lines[0], int):
203203
# lines is just a list of numbers, it must match the statements
204204
# found in the code.
205-
assert statements == lines, f"{statements!r} != {lines!r}"
205+
assert statements == lines, f"lines: {statements!r} != {lines!r}"
206206
else:
207207
# lines is a list of possible line number lists, one of them
208208
# must match.
@@ -214,7 +214,7 @@ def check_coverage(
214214

215215
missing_formatted = analysis.missing_formatted()
216216
if isinstance(missing, str):
217-
msg = f"{missing_formatted!r} != {missing!r}"
217+
msg = f"missing: {missing_formatted!r} != {missing!r}"
218218
assert missing_formatted == missing, msg
219219
else:
220220
for missing_list in missing:

0 commit comments

Comments
 (0)