Skip to content

Commit

Permalink
Don't do a redundant idempotence check if it's the same as the output…
Browse files Browse the repository at this point in the history
… check we just did.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
  • Loading branch information
daira committed Sep 28, 2014
1 parent 32baf14 commit a2abfb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/utils.py
Expand Up @@ -36,6 +36,7 @@ def _check(this_input_content, which_check):
(which_check, this_input_content, output_content, expected_content))

_check(input_content, "output check failed")
_check(expected_content, "idempotence check failed")
if input_content != expected_content:
_check(expected_content, "idempotence check failed")
finally:
shutil.rmtree(tmpdirname)

0 comments on commit a2abfb4

Please sign in to comment.