diff options
Diffstat (limited to 'tests/test_directive_other.py')
| -rw-r--r-- | tests/test_directive_other.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_directive_other.py b/tests/test_directive_other.py index dc834f5a0..cbbebee5c 100644 --- a/tests/test_directive_other.py +++ b/tests/test_directive_other.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ test_directive_other ~~~~~~~~~~~~~~~~~~~~ @@ -21,9 +20,11 @@ from sphinx.testing.util import assert_node def parse(app, docname, text): app.env.temp_data['docname'] = docname + parser = RSTParser() + parser.set_application(app) return publish_doctree(text, app.srcdir / docname + '.rst', reader=SphinxStandaloneReader(app), - parser=RSTParser(), + parser=parser, settings_overrides={'env': app.env, 'gettext_compact': True}) |
