summaryrefslogtreecommitdiff
path: root/tests/test_directive_code.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2022-04-24 17:55:05 +0100
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2022-04-24 17:55:05 +0100
commite2595b6cbef3bc19c0124dc0a0981b25b9c860d3 (patch)
treef4df345356e9c7f8774beef15056037d01d7c59b /tests/test_directive_code.py
parent35ed39c946c7f6fb2d579f0948acd1f8773c1c1e (diff)
downloadsphinx-git-e2595b6cbef3bc19c0124dc0a0981b25b9c860d3.tar.gz
Review: Use `list`
Diffstat (limited to 'tests/test_directive_code.py')
-rw-r--r--tests/test_directive_code.py2
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