From c7879755f4de14ee6230469a8636833ac6dca658 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Mon, 2 Dec 2013 21:51:24 -0800 Subject: [PATCH] tests: re-enable strict map loading tests --- tests/python_tests/load_map_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/python_tests/load_map_test.py b/tests/python_tests/load_map_test.py index 75d6112a5..9296a4644 100644 --- a/tests/python_tests/load_map_test.py +++ b/tests/python_tests/load_map_test.py @@ -45,14 +45,14 @@ def test_good_files(): for filename in good_files: try: m = mapnik.Map(512, 512) - strict = False + strict = True mapnik.load_map(m, filename, strict) base_path = os.path.dirname(filename) mapnik.load_map_from_string(m,open(filename,'rb').read(),strict,base_path) except RuntimeError, e: # only test datasources that we have installed if not 'Could not create datasource' in str(e): - failures.append('Failed to load valid map (%s)!' % filename) + failures.append('Failed to load valid map %s (%s)' % (filename,e)) eq_(len(failures),0,'\n'+'\n'.join(failures)) if __name__ == "__main__":