Georg Brandl avatar Georg Brandl committed db5b812

Fix the test suite.

Comments (0)

Files changed (2)


             return name
-@with_app(buildername='html', warning=html_warnfile)
+@with_app(buildername='html', warning=html_warnfile, cleanenv=True)
 def test_html(app):
     html_warnings = html_warnfile.getvalue().replace(os.sep, '/')
                                'path %s in %s' % (text, path, fname))
-@with_app(buildername='latex', warning=latex_warnfile)
+@with_app(buildername='latex', warning=latex_warnfile, cleanenv=True)
 def test_latex(app):
     LaTeXTranslator.ignore_missing_images = True
 # just let the remaining ones run for now
+@with_app(buildername='linkcheck', cleanenv=True)
 def test_linkcheck(app):
+@with_app(buildername='text', cleanenv=True)
 def test_text(app):


 def setup_module():
     global app, settings, parser
     app = TestApp(cleanenv=True)
-    optparser = frontend.OptionParser(components=(rst.Parser, HTMLWriter, LaTeXWriter))
+    optparser = frontend.OptionParser(
+        components=(rst.Parser, HTMLWriter, LaTeXWriter))
     settings = optparser.get_default_values()
     settings.env = app.builder.env
     parser = rst.Parser()
 def verify_re(rst, html_expected, latex_expected):
     document = utils.new_document('test data', settings)
+    document['file'] = 'dummy'
     parser.parse(rst, document)
     for msg in document.traverse(nodes.system_message):
         if msg['level'] == 1:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.