File tree Expand file tree Collapse file tree 1 file changed +4
-18
lines changed
Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -2839,29 +2839,16 @@ def test_unsupported_node_types_in_process_node_to_blocks(
28392839) -> None :
28402840 """
28412841 Unsupported node types in _process_node_to_blocks raise
2842- NotImplementedError.
2842+ `` NotImplementedError`` .
28432843 """
28442844 rst_content = """
2845- .. unsupported-node::
2846- """
2847-
2848- conf_py_content = """
2849- from docutils import nodes
2850- from docutils.parsers.rst import Directive
2845+ .. raw:: html
28512846
2852- class UnsupportedNode(Directive):
2853- def run(self):
2854- # Create a custom node type that's not registered
2855- node = nodes.Element()
2856- node.tagname = 'unsupported_node'
2857- return [node]
2858-
2859- def setup(app):
2860- app.add_directive('unsupported-node', UnsupportedNode)
2847+ <hr width=50 size=10>
28612848 """
28622849
28632850 expected_message = (
2864- r"^Unsupported node type: unsupported_node on line "
2851+ r"^Unsupported node type: raw on line "
28652852 rf"1 in "
28662853 rf"{ re .escape (pattern = str (object = tmp_path / 'src' / 'index.rst' ))} .$"
28672854 )
@@ -2874,7 +2861,6 @@ def setup(app):
28742861 expected_objects = [],
28752862 make_app = make_app ,
28762863 tmp_path = tmp_path ,
2877- conf_py_content = conf_py_content ,
28782864 )
28792865
28802866
You can’t perform that action at this time.
0 commit comments