summaryrefslogtreecommitdiff
path: root/gerber/tests/test_cairo_backend.py
diff options
context:
space:
mode:
authorGarret Fick <garret@ficksworkshop.com>2016-08-06 09:51:58 +0800
committerGarret Fick <garret@ficksworkshop.com>2016-08-06 09:51:58 +0800
commit8d5e782ccf220d77f0aad5a4e5605dc5cbe0f410 (patch)
tree8415fede2e664716a5b3a09fbb4c09baca78bcf8 /gerber/tests/test_cairo_backend.py
parent8cd842a41a55ab3d8f558a2e3e198beba7da58a1 (diff)
downloadgerbonara-8d5e782ccf220d77f0aad5a4e5605dc5cbe0f410.tar.gz
gerbonara-8d5e782ccf220d77f0aad5a4e5605dc5cbe0f410.tar.bz2
gerbonara-8d5e782ccf220d77f0aad5a4e5605dc5cbe0f410.zip
Fix multiple problems with the merge. There are still errors, but I will intentionally leave them because future merges might resolve them
Diffstat (limited to 'gerber/tests/test_cairo_backend.py')
-rw-r--r--gerber/tests/test_cairo_backend.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gerber/tests/test_cairo_backend.py b/gerber/tests/test_cairo_backend.py
index f358235..625a23e 100644
--- a/gerber/tests/test_cairo_backend.py
+++ b/gerber/tests/test_cairo_backend.py
@@ -182,6 +182,8 @@ def _test_render(gerber_path, png_expected_path, create_output_path = None):
with open(png_expected_path, 'rb') as expected_file:
expected_bytes = expected_file.read()
- assert_equal(expected_bytes, actual_bytes)
-
+ # Don't directly use assert_equal otherwise any failure pollutes the test results
+ equal = (expected_bytes == actual_bytes)
+ assert_true(equal)
+
return gerber