summaryrefslogtreecommitdiff
path: root/tests/roots/test-add_source_parser-conflicts-with-users-setting/source_parser.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-02-11 21:13:32 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-02-21 10:54:49 +0900
commit5789b25847641eb9b6b9564079861a422406d170 (patch)
treeeb99c9edc286ee3a5babaa9b4b0bbcf4f862c7a6 /tests/roots/test-add_source_parser-conflicts-with-users-setting/source_parser.py
parent938ba386ed84f7fd3a106233ce52c52be5553dc7 (diff)
downloadsphinx-git-5789b25847641eb9b6b9564079861a422406d170.tar.gz
Change interface of add_source_parser() and add add_source_suffix()
Diffstat (limited to 'tests/roots/test-add_source_parser-conflicts-with-users-setting/source_parser.py')
-rw-r--r--tests/roots/test-add_source_parser-conflicts-with-users-setting/source_parser.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/roots/test-add_source_parser-conflicts-with-users-setting/source_parser.py b/tests/roots/test-add_source_parser-conflicts-with-users-setting/source_parser.py
index 0dff7e311..69898ed91 100644
--- a/tests/roots/test-add_source_parser-conflicts-with-users-setting/source_parser.py
+++ b/tests/roots/test-add_source_parser-conflicts-with-users-setting/source_parser.py
@@ -4,8 +4,9 @@ from docutils.parsers import Parser
class TestSourceParser(Parser):
- pass
+ supported = ('test',)
def setup(app):
- app.add_source_parser('.test', TestSourceParser)
+ app.add_source_suffix('.test', 'test')
+ app.add_source_parser(TestSourceParser)