Skip to content

sphinxcontrib/devhelp: nodes.Node.traverse() is obsoleted by Node.findall() #11600

@mtelka

Description

@mtelka

Describe the bug

When I run tests for sphinxcontrib-devhelp I see the following warning:

=============================== warnings summary ===============================
tests/test_devhelp.py::test_basic
  $(@D)/sphinxcontrib/devhelp/__init__.py:96: PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by Node.findall().
    for node in tocdoc.traverse(matcher):  # type: addnodes.compact_paragraph

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

How to Reproduce

Run tests for sphinxcontrib-devhelp.

Environment Information

N/A

Sphinx extensions

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions