tests: only run pycairo test if sqlite ds is available
This commit is contained in:
parent
619af3e3c7
commit
62d669907b
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ def setup():
|
||||||
# from another directory we need to chdir()
|
# from another directory we need to chdir()
|
||||||
os.chdir(execution_path('.'))
|
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):
|
def _pycairo_surface(type,sym):
|
||||||
import cairo
|
import cairo
|
||||||
|
|
Loading…
Reference in a new issue