diff --git a/scripts/tests.py b/scripts/tests.py index 964793a..c605b9e 100755 --- a/scripts/tests.py +++ b/scripts/tests.py @@ -56,7 +56,7 @@ def compare_images(a, b, c): with open(log_name, 'w') as output: do_cmd(("magick compare -metric AE -fuzz %d%% %s %s %s" % (fuzz, a, b, c)).split(), output = output) with open(log_name, 'r') as f: - pixels = int(f.read().strip()) + pixels = int(float(f.read().strip())) os.remove(log_name) return pixels