refactor: Remove rst_epilog from test-root/conf.py

I found test-root defines rst_epilog in its conf.py.  It causes
side-effects to many test cases in Sphinx's testing because test-root
is widely used.  This removes the configuration from test-root not to
cause side-effects to our testings.

Note: We already have test cases for rst_epilog in test_util_rst.
This commit is contained in:
Takeshi KOMIYA 2020-10-06 01:53:28 +09:00
parent 0476e1cea9
commit 4f19f400bf
3 changed files with 4 additions and 4 deletions

View File

@ -32,8 +32,6 @@ pygments_style = 'sphinx'
show_authors = True show_authors = True
numfig = True numfig = True
rst_epilog = '.. |subst| replace:: global substitution'
html_sidebars = {'**': ['localtoc.html', 'relations.html', 'sourcelink.html', html_sidebars = {'**': ['localtoc.html', 'relations.html', 'sourcelink.html',
'customsb.html', 'searchbox.html'], 'customsb.html', 'searchbox.html'],
'index': ['contentssb.html', 'localtoc.html', 'globaltoc.html']} 'index': ['contentssb.html', 'localtoc.html', 'globaltoc.html']}

View File

@ -22,7 +22,9 @@ Meta markup
Generic reST Generic reST
------------ ------------
A |subst| (the definition is in rst_epilog). A |subst|!
.. |subst| replace:: global substitution
.. highlight:: none .. highlight:: none

View File

@ -258,7 +258,7 @@ def test_html4_output(app, status, warning):
(".//pre/strong", 'try_stmt'), (".//pre/strong", 'try_stmt'),
(".//pre/a[@href='#grammar-token-try1_stmt']/code/span", 'try1_stmt'), (".//pre/a[@href='#grammar-token-try1_stmt']/code/span", 'try1_stmt'),
# tests for ``only`` directive # tests for ``only`` directive
(".//p", 'A global substitution.'), (".//p", 'A global substitution!'),
(".//p", 'In HTML.'), (".//p", 'In HTML.'),
(".//p", 'In both.'), (".//p", 'In both.'),
(".//p", 'Always present'), (".//p", 'Always present'),