mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
test: replace emph_literal_role() by EmphasizedLiteral
This commit is contained in:
parent
c747257f77
commit
1892eac4b9
@ -11,11 +11,13 @@
|
||||
from docutils import nodes
|
||||
from mock import Mock
|
||||
|
||||
from sphinx.roles import emph_literal_role
|
||||
from sphinx.roles import EmphasizedLiteral
|
||||
from sphinx.testing.util import assert_node
|
||||
|
||||
|
||||
def test_samp():
|
||||
emph_literal_role = EmphasizedLiteral()
|
||||
|
||||
# normal case
|
||||
text = 'print 1+{variable}'
|
||||
ret, msg = emph_literal_role('samp', text, text, 0, Mock())
|
||||
|
Loading…
Reference in New Issue
Block a user