Skip to content

Commit a2abfb4

Browse files
committed
Don't do a redundant idempotence check if it's the same as the output check we just did.
Signed-off-by: Daira Hopwood <[email protected]>
1 parent 32baf14 commit a2abfb4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def _check(this_input_content, which_check):
3636
(which_check, this_input_content, output_content, expected_content))
3737

3838
_check(input_content, "output check failed")
39-
_check(expected_content, "idempotence check failed")
39+
if input_content != expected_content:
40+
_check(expected_content, "idempotence check failed")
4041
finally:
4142
shutil.rmtree(tmpdirname)

0 commit comments

Comments
 (0)