diff options
Diffstat (limited to 'tests/test_markup.py')
-rw-r--r-- | tests/test_markup.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_markup.py b/tests/test_markup.py index fbd4e20cc..e1e01491a 100644 --- a/tests/test_markup.py +++ b/tests/test_markup.py @@ -67,7 +67,7 @@ def parse(new_document): parser = RstParser() parser.parse(rst, document) SphinxSmartQuotes(document, startnode=None).apply() - for msg in document.traverse(nodes.system_message): + for msg in list(document.findall(nodes.system_message)): if msg['level'] == 1: msg.replace_self([]) return document |