diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-05 22:53:36 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-05 23:11:16 +0900 |
commit | 8a6179aa61ee17f234f7522b2d6f69ee9ff3d9bf (patch) | |
tree | c29060c0d67092d086b64dde05a8f0be1d2e7ce8 /tests/test_directive_other.py | |
parent | ca793d35955d8625ed212cc26b104e69e837b588 (diff) | |
download | sphinx-git-8a6179aa61ee17f234f7522b2d6f69ee9ff3d9bf.tar.gz |
Process prolog and epilog on RSTParser (instead Input component)
Diffstat (limited to 'tests/test_directive_other.py')
-rw-r--r-- | tests/test_directive_other.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_directive_other.py b/tests/test_directive_other.py index 6eb7a2056..9e3f923b0 100644 --- a/tests/test_directive_other.py +++ b/tests/test_directive_other.py @@ -21,9 +21,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}) |