fail doc generation if pygments is not installed
--HG-- branch : trunk
This commit is contained in:
parent
aa6d2a37e6
commit
17bd875444
|
@ -107,3 +107,4 @@ Also consider implementing py.test --funcargs to
|
||||||
show available funcargs - it should honour the
|
show available funcargs - it should honour the
|
||||||
path::TestClass syntax so one can easily inspect
|
path::TestClass syntax so one can easily inspect
|
||||||
where funcargs come from or which are available.
|
where funcargs come from or which are available.
|
||||||
|
|
||||||
|
|
|
@ -3,3 +3,7 @@ import py
|
||||||
#py.test.importorskip("pygments")
|
#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):
|
||||||
|
if item.fspath.ext == ".txt":
|
||||||
|
import pygments # for raising an error
|
||||||
|
|
Loading…
Reference in New Issue