From: Stuart Prescott <stuart@debian.org>
Date: Tue, 12 Nov 2024 12:13:26 +1100
Subject: Relax image comparisons in test suite

Relax image comparisons in the test suite as the output was varying a
little between different versions of texlive which then results in FTBFS
and failed CI.
---
 unittests/TikzTikzcd.py      | 2 +-
 unittests/imagers/imagers.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/unittests/TikzTikzcd.py b/unittests/TikzTikzcd.py
index 115f5a1..f5edc20 100755
--- a/unittests/TikzTikzcd.py
+++ b/unittests/TikzTikzcd.py
@@ -99,7 +99,7 @@ def test_tikz(tmpdir):
             new_file(f)
 
         diff = cmp_img(str(tmpdir / f), str(benchdir / f))
-        if diff > 0.0001:
+        if diff > 0.02:
             error = True
             print('Differences were found: {} ({})'.format(f, diff), file=sys.stderr)
             new_file(f)
diff --git a/unittests/imagers/imagers.py b/unittests/imagers/imagers.py
index ebcacfb..0025ac8 100755
--- a/unittests/imagers/imagers.py
+++ b/unittests/imagers/imagers.py
@@ -74,7 +74,7 @@ def test_imager(imager_tuple, tmpdir):
 
     diff = cmp_img(str(benchfile.absolute()), str(outfile.absolute()))
 
-    if (ext == '.svg' and diff > 0.0001) or diff > 0.01:
+    if (ext == '.svg' and diff > 0.008) or diff > 0.01:
         (root/'new').mkdir(parents=True, exist_ok=True)
         shutil.copyfile(str(outfile), str(root/'new'/benchfile.name))
 
