From 1bf3e89de08162ab01cb27064af8023377b5d286 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Mon, 11 Mar 2013 15:58:19 -0700 Subject: [PATCH] tests: if palette comparison fails print file names --- tests/python_tests/palette_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/python_tests/palette_test.py b/tests/python_tests/palette_test.py index edc64d55a..caa50d604 100644 --- a/tests/python_tests/palette_test.py +++ b/tests/python_tests/palette_test.py @@ -40,9 +40,9 @@ def test_render_with_palette(): # test saving to a string open('/tmp/mapnik-palette-test2.png','wb').write(im.tostring('png',palette)); # compare the two methods - eq_(mapnik.Image.open('/tmp/mapnik-palette-test.png').tostring(),mapnik.Image.open('/tmp/mapnik-palette-test2.png').tostring()) + eq_(mapnik.Image.open('/tmp/mapnik-palette-test.png').tostring(),mapnik.Image.open('/tmp/mapnik-palette-test2.png').tostring(),'%s not eq to %s' % ('/tmp/mapnik-palette-test.png','/tmp/mapnik-palette-test2.png')) # compare to expected - eq_(mapnik.Image.open('/tmp/mapnik-palette-test.png').tostring(),mapnik.Image.open('./images/support/mapnik-palette-test.png').tostring()) + eq_(mapnik.Image.open('/tmp/mapnik-palette-test.png').tostring(),mapnik.Image.open('./images/support/mapnik-palette-test.png').tostring(),'%s not eq to %s' % ('/tmp/mapnik-palette-test.png','./images/support/mapnik-palette-test.png')) if __name__ == "__main__": setup()