Source

# -*- coding: utf-8 -*-""" test_build ~~~~~~~~~~ Test all builders that have no special checks. :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details."""fromutilimport*defteardown_module():(test_root/'_build').rmtree(True)# just let the remaining ones run for now@with_app(buildername='pickle')deftest_pickle(app):app.builder.build_all()@with_app(buildername='json')deftest_json(app):app.builder.build_all()@with_app(buildername='linkcheck')deftest_linkcheck(app):app.builder.build_all()@with_app(buildername='text')deftest_text(app):app.builder.build_all()@with_app(buildername='htmlhelp')deftest_htmlhelp(app):app.builder.build_all()@with_app(buildername='qthelp')deftest_qthelp(app):app.builder.build_all()@with_app(buildername='epub')deftest_epub(app):app.builder.build_all()@with_app(buildername='changes')deftest_changes(app):app.builder.build_all()try:fromdocutils.writers.manpageimportWriterexceptImportError:passelse:@with_app(buildername='man')deftest_man(app):app.builder.build_all()@with_app(buildername='singlehtml',cleanenv=True)deftest_singlehtml(app):app.builder.build_all()