From 163bc534ac53ca9183d83b6c886ccec3c62828ad Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 18 Jul 2021 07:07:06 -0400 Subject: test: mark some only-failure code in the recent goldtest changes --- tests/goldtest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/goldtest.py b/tests/goldtest.py index 96d3cf81..7321166c 100644 --- a/tests/goldtest.py +++ b/tests/goldtest.py @@ -67,7 +67,7 @@ def compare( expected_only = fnmatch_list(dc.left_only, file_pattern) actual_only = fnmatch_list(dc.right_only, file_pattern) - def save_mismatch(f): + def save_mismatch(f): # pragma: only failure """Save a mismatched result to tests/actual.""" save_path = expected_dir.replace("/gold/", "/actual/") os.makedirs(save_path, exist_ok=True) @@ -105,7 +105,7 @@ def compare( print(f":::: end diff {expected_file!r} and {actual_file!r}") save_mismatch(f) - if not actual_extra: + if not actual_extra: # pragma: only failure for f in actual_only: save_mismatch(f) -- cgit v1.2.1