Skip to content

Commit d466054

Browse files
committed
Merge branch '85-test-fix-import' of github.com:python-modernize/python-modernize
2 parents dafb523 + a2abfb4 commit d466054

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)