Fix the test suite.

This commit is contained in:
Georg Brandl 2010-01-13 23:35:05 +00:00
parent 883b40b7e9
commit a52885d078
2 changed files with 2 additions and 4 deletions

View File

@ -14,7 +14,7 @@ from util import *
from docutils.statemachine import ViewList
from sphinx.ext.autodoc import AutoDirective, Documenter, add_documenter, \
from sphinx.ext.autodoc import AutoDirective, add_documenter, \
ModuleLevelDocumenter, FunctionDocumenter, cut_lines, between, ALL

View File

@ -25,9 +25,7 @@ def setup_module():
# Is there a better way of generating this doctree than manually iterating?
global app, env
app = TestApp(srcdir='(temp)')
env = BuildEnvironment(app.srcdir, app.doctreedir, app.config)
# Huh. Why do I need to do this?
env.set_warnfunc(lambda *args: warnings.append(args))
env = app.env
msg, num, it = env.update(app.config, app.srcdir, app.doctreedir, app)
for docname in it:
pass