Skip to content

Commit

Permalink
Avoid deprecated Node.traverse method in ``test_node_translated_a…
Browse files Browse the repository at this point in the history
…ttribute``
  • Loading branch information
AA-Turner committed Jul 23, 2023
1 parent 4de540e commit ae866b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_intl.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ def test_node_translated_attribute(app):
translated_nodes = 0

doctree = app.env.get_doctree('admonitions')
for node in doctree.traverse():
for node in doctree.findall():
if hasattr(node, 'get') and node.get('translated', False):
translated_nodes += 1
assert translated_nodes == expected
Expand Down

0 comments on commit ae866b1

Please sign in to comment.