diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-02-16 20:42:43 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-02-16 20:42:43 +0900 |
commit | 57d63ab50b542c3150ade0e8473eda2bcb077ce4 (patch) | |
tree | 4fe3acaaacabb16996b0a0d9a42aa3c6c36334d9 | |
parent | a70c76c474bf66f255d0efdd7a1968fd10c1489d (diff) | |
download | sphinx-git-57d63ab50b542c3150ade0e8473eda2bcb077ce4.tar.gz |
test: testcase for add_lexer() should give a Lexer class instead of instance
-rw-r--r-- | tests/test_highlighting.py | 2 |
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') |