diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-01-03 00:57:31 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-03 00:57:31 +0900 |
commit | 08a87d945a8ca7770c589ea878e9b095ed35e6d4 (patch) | |
tree | 9ceec80c4117bef6e2f0a960c85d99237475cfe7 /tests/test_domain_std.py | |
parent | a0919172190ee147d44288a0ac67712870ca965e (diff) | |
parent | 05a898ecb4ff8e654a053a1ba5131715a4514812 (diff) | |
download | sphinx-git-08a87d945a8ca7770c589ea878e9b095ed35e6d4.tar.gz |
Merge pull request #10044 from tk0miya/9777_Node.findall
Migrate to Node.findall() from Node.traverse()
Diffstat (limited to 'tests/test_domain_std.py')
-rw-r--r-- | tests/test_domain_std.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_domain_std.py b/tests/test_domain_std.py index 18c1766aa..14c2bd3e2 100644 --- a/tests/test_domain_std.py +++ b/tests/test_domain_std.py @@ -424,7 +424,7 @@ def test_productionlist2(app): " A: `:A` `A`\n" " B: `P1:B` `~P1:B`\n") doctree = restructuredtext.parse(app, text) - refnodes = list(doctree.traverse(pending_xref)) + refnodes = list(doctree.findall(pending_xref)) assert_node(refnodes[0], pending_xref, reftarget="A") assert_node(refnodes[1], pending_xref, reftarget="P2:A") assert_node(refnodes[2], pending_xref, reftarget="P1:B") |