Warn if libxslt is not available
This commit is contained in:
parent
5da7e13776
commit
9f69ac1c30
@ -20,6 +20,9 @@ try:
|
|||||||
except:
|
except:
|
||||||
try:
|
try:
|
||||||
from subprocess import Popen, PIPE
|
from subprocess import Popen, PIPE
|
||||||
except ImportError:
|
xsltproc=Popen(['xsltproc','--version'],stdout=PIPE,stderr=PIPE)
|
||||||
|
xsltproc.communicate()
|
||||||
|
if xsltproc.returncode != 0: raise ImportError
|
||||||
|
except:
|
||||||
logger.warn("libxslt is not available => can't test xslt filters")
|
logger.warn("libxslt is not available => can't test xslt filters")
|
||||||
del XsltFilterTests.test_xslt_filter
|
del XsltFilterTests.test_xslt_filter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user