tests: only run pycairo test if sqlite ds is available

This commit is contained in:
Dane Springmeyer 2012-08-16 15:46:40 -07:00
parent 619af3e3c7
commit 62d669907b

View file

@ -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