From d994c51ccd6c391ac7dd4c5932dabf6e20d78948 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 9 Mar 2010 16:18:27 -0600 Subject: [PATCH] actually skip doc tests if pygments is not available --HG-- branch : trunk --- doc/conftest.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/conftest.py b/doc/conftest.py index 6755f8892..6f7afeb58 100644 --- a/doc/conftest.py +++ b/doc/conftest.py @@ -1,9 +1,8 @@ #XXX make work: excludedirs = ['_build'] import py -#py.test.importorskip("pygments") pytest_plugins = ['pytest_restdoc'] collect_ignore = ['test/attic.txt'] def pytest_runtest_setup(item): if item.fspath.ext == ".txt": - import pygments # for raising an error + py.test.importorskip("pygments") # for raising an error