From 62d669907bb1a2c33717346f86fc9e495997ceee Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 16 Aug 2012 15:46:40 -0700 Subject: [PATCH] tests: only run pycairo test if sqlite ds is available --- tests/python_tests/cairo_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/python_tests/cairo_test.py b/tests/python_tests/cairo_test.py index bd566a373..ff7b54f25 100644 --- a/tests/python_tests/cairo_test.py +++ b/tests/python_tests/cairo_test.py @@ -10,7 +10,7 @@ def setup(): # from another directory we need to chdir() os.chdir(execution_path('.')) -if mapnik.has_pycairo(): +if mapnik.has_pycairo() and 'sqlite' in mapnik.DatasourceCache.instance().plugin_names(): def _pycairo_surface(type,sym): import cairo