Skip to content

Commit 06ec80a

Browse files
committed
Fix --bless not working anymore in htmldocck
1 parent ac8b118 commit 06ec80a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/etc/htmldocck.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,12 @@ def check_snapshot(snapshot_name, actual_tree, normalize_to_text):
423423
else:
424424
actual_str = flatten(actual_tree)
425425

426+
# Conditions:
427+
# 1. Is --bless
428+
# 2. Are actual and expected tree different
429+
# 3. Are actual and expected text different
426430
if not expected_str \
427-
or (not normalize_to_text and
431+
or (not normalize_to_text and \
428432
not compare_tree(make_xml(actual_str), make_xml(expected_str), stderr)) \
429433
or (normalize_to_text and actual_str != expected_str):
430434

0 commit comments

Comments
 (0)