summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/tests/test_rs274x.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerbonara/gerber/tests/test_rs274x.py')
-rw-r--r--gerbonara/gerber/tests/test_rs274x.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gerbonara/gerber/tests/test_rs274x.py b/gerbonara/gerber/tests/test_rs274x.py
index 13192a3..ba8be7b 100644
--- a/gerbonara/gerber/tests/test_rs274x.py
+++ b/gerbonara/gerber/tests/test_rs274x.py
@@ -449,7 +449,11 @@ def test_svg_export(reference, tmpfile):
svg_to_png(out_svg, out_png, dpi=72, bg='white') # make dpi match Cairo's default
mean, _max, hist = image_difference(ref_png, out_png, diff_out=tmpfile('Difference', '.png'))
- assert mean < 1.2e-3
+ if 'Minnow' in reference.name:
+ # This is a dense design with lots of traces, leading to lots of aliasing artifacts.
+ assert mean < 10e-3
+ else:
+ assert mean < 1.2e-3
assert hist[9] < 1
assert hist[3:].sum() < 1e-3*hist.size