fix python3 issues, add missing plugin docs

--HG--
branch : trunk
This commit is contained in:
holger krekel
2010-01-03 13:27:06 +01:00
parent d541713dca
commit 27aa14c20f
6 changed files with 68 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
import py
from py.plugin.pytest_restdoc import deindent
def test_deindent():
@@ -9,6 +10,9 @@ def test_deindent():
assert deindent(' foo\n bar\n') == ' foo\nbar\n'
class TestDoctest:
def setup_class(cls):
py.test.importorskip("docutils")
def pytest_funcarg__testdir(self, request):
testdir = request.getfuncargvalue("testdir")
testdir.plugins.append("restdoc")