summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-02-16 20:42:43 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-02-16 20:42:43 +0900
commit57d63ab50b542c3150ade0e8473eda2bcb077ce4 (patch)
tree4fe3acaaacabb16996b0a0d9a42aa3c6c36334d9
parenta70c76c474bf66f255d0efdd7a1968fd10c1489d (diff)
downloadsphinx-git-57d63ab50b542c3150ade0e8473eda2bcb077ce4.tar.gz
test: testcase for add_lexer() should give a Lexer class instead of instance
-rw-r--r--tests/test_highlighting.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_highlighting.py b/tests/test_highlighting.py
index 525af2547..c2b470a6b 100644
--- a/tests/test_highlighting.py
+++ b/tests/test_highlighting.py
@@ -40,7 +40,7 @@ class ComplainOnUnhighlighted(PygmentsBridge):
def test_add_lexer(app, status, warning):
- app.add_lexer('test', MyLexer())
+ app.add_lexer('test', MyLexer)
bridge = PygmentsBridge('html')
ret = bridge.highlight_block('ab', 'test')