From a5926e70b227529dfd1d34be6c92c36e23d2bdf2 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Mon, 28 Oct 2013 14:18:44 -0700 Subject: [PATCH] tests: lessen strictness of cairo comparison tests so that files created on ubuntu saucy/os x pass on ubuntu precise - refs #1868 --- tests/python_tests/cairo_test.py | 2 +- tests/visual_tests/test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/python_tests/cairo_test.py b/tests/python_tests/cairo_test.py index 4add6af20..d35a3a5ff 100644 --- a/tests/python_tests/cairo_test.py +++ b/tests/python_tests/cairo_test.py @@ -163,7 +163,7 @@ if mapnik.has_pycairo(): shutil.copy(test_cairo_file,expected_cairo_file) diff = abs(os.stat(expected_cairo_file).st_size-os.stat(test_cairo_file).st_size) msg = 'diff in size (%s) between actual (%s) and expected(%s)' % (diff,test_cairo_file,'tests/python_tests/'+ expected_cairo_file) - eq_( diff < 1500, True, msg) + eq_( diff < 2100, True, msg) os.remove(test_cairo_file) return True else: diff --git a/tests/visual_tests/test.py b/tests/visual_tests/test.py index dd5c0e8eb..4cd15cd3a 100755 --- a/tests/visual_tests/test.py +++ b/tests/visual_tests/test.py @@ -30,7 +30,7 @@ if 'Linux' == os.uname()[0]: # which is older than the 1.12.14 version we used on OS X # to generate the expected images, so we'll rachet back the threshold # https://github.com/mapnik/mapnik/issues/1868 - cairo_threshold = 120 + cairo_threshold = 181 def render_cairo(m, output, scale_factor): mapnik.render_to_file(m, output, 'ARGB32', scale_factor)