actually skip doc tests if pygments is not available
--HG-- branch : trunk
This commit is contained in:
parent
fe95ad0aa6
commit
d994c51ccd
|
@ -1,9 +1,8 @@
|
||||||
#XXX make work: excludedirs = ['_build']
|
#XXX make work: excludedirs = ['_build']
|
||||||
import py
|
import py
|
||||||
#py.test.importorskip("pygments")
|
|
||||||
pytest_plugins = ['pytest_restdoc']
|
pytest_plugins = ['pytest_restdoc']
|
||||||
collect_ignore = ['test/attic.txt']
|
collect_ignore = ['test/attic.txt']
|
||||||
|
|
||||||
def pytest_runtest_setup(item):
|
def pytest_runtest_setup(item):
|
||||||
if item.fspath.ext == ".txt":
|
if item.fspath.ext == ".txt":
|
||||||
import pygments # for raising an error
|
py.test.importorskip("pygments") # for raising an error
|
||||||
|
|
Loading…
Reference in New Issue