diff options
author | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2022-04-24 17:55:05 +0100 |
---|---|---|
committer | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2022-04-24 17:55:05 +0100 |
commit | e2595b6cbef3bc19c0124dc0a0981b25b9c860d3 (patch) | |
tree | f4df345356e9c7f8774beef15056037d01d7c59b /tests/test_directive_code.py | |
parent | 35ed39c946c7f6fb2d579f0948acd1f8773c1c1e (diff) | |
download | sphinx-git-e2595b6cbef3bc19c0124dc0a0981b25b9c860d3.tar.gz |
Review: Use `list`
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 |