Skip to content

Commit

Permalink
Revert test change for overwriting expected image
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Nov 30, 2023
1 parent 5f401ee commit d36ab30
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pycoast/tests/test_pycoast.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,7 @@ def _new_test_image(mode, shape, filename, color=0):

def images_match(ref_image, test_image):
"""Check is images match."""
res = fft_metric(np.array(ref_image), np.array(test_image))
if not res:
test_image.save(ref_image.filename)
return res
return fft_metric(np.array(ref_image), np.array(test_image))


class _ContourWriterTestBase:
Expand Down

0 comments on commit d36ab30

Please sign in to comment.