From d276fa4f5a20dc3eb4dbf18bf4b8898fb3e24a79 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 12 Mar 2023 11:28:49 -0400 Subject: debug: label the assert messages --- tests/coveragetest.py | 4 ++-- 1 file 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: -- cgit v1.2.1