diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-12-14 11:40:50 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-12-14 13:33:12 +0900 |
commit | faedcc48ccb942b9a7b758b699b30f0d026c0771 (patch) | |
tree | ea3669f2656676fd4d4bda9691b324129202a3aa /tests/test_directive_code.py | |
parent | 1a54a7229c37dd7618033552d5893e6a429d2bc3 (diff) | |
download | sphinx-git-faedcc48ccb942b9a7b758b699b30f0d026c0771.tar.gz |
Fix #6887: Sphinx crashes with docutils-0.16b0
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 ecf5423c2..5d93449f1 100644 --- a/tests/test_directive_code.py +++ b/tests/test_directive_code.py @@ -573,7 +573,7 @@ def test_literalinclude_pydecorators(app, status, warning): def test_code_block_highlighted(app, status, warning): app.builder.build(['highlight']) doctree = app.env.get_doctree('highlight') - codeblocks = doctree.traverse(nodes.literal_block) + codeblocks = list(doctree.traverse(nodes.literal_block)) assert codeblocks[0]['language'] == 'default' assert codeblocks[1]['language'] == 'python2' |