mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
test: testcase for add_lexer() should give a Lexer class instead of instance
This commit is contained in:
parent
a70c76c474
commit
57d63ab50b
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user