diff options
Diffstat (limited to 'tests/test_directive_code.py')
-rw-r--r-- | tests/test_directive_code.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_directive_code.py b/tests/test_directive_code.py index 6198d422e..894f4ff95 100644 --- a/tests/test_directive_code.py +++ b/tests/test_directive_code.py @@ -591,7 +591,7 @@ def test_linenothreshold(app, status, warning): def test_code_block_dedent(app, status, warning): app.builder.build(['dedent']) doctree = app.env.get_doctree('dedent') - codeblocks = [*doctree.findall(nodes.literal_block)] + codeblocks = list(doctree.findall(nodes.literal_block)) # Note: comparison string should not have newlines at the beginning or end text_0_indent = '''First line Second line |