diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-22 18:07:51 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-22 18:07:51 +0300 |
commit | 90fb44ee4327bcdd4480faa9061071900429f494 (patch) | |
tree | 1b7e491e06402d1f8feeb293a5d20218576888ec /sphinx/testing | |
parent | c7e590818a16704620d029616e3d59d3d48446a5 (diff) | |
parent | d2f7628f8dc929b24bf8a1cfbff091e253de0e36 (diff) |
Merge branch '3.x'
Diffstat (limited to 'sphinx/testing')
-rw-r--r-- | sphinx/testing/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/testing/util.py b/sphinx/testing/util.py index 75cd0f411..450241f55 100644 --- a/sphinx/testing/util.py +++ b/sphinx/testing/util.py @@ -63,7 +63,7 @@ def assert_node(node: Node, cls: Any = None, xpath: str = "", **kwargs: Any) -> 'The node%s has %d child nodes, not one' % (xpath, len(node)) assert_node(node[0], cls[1:], xpath=xpath + "[0]", **kwargs) elif isinstance(cls, tuple): - assert isinstance(node, nodes.Element), \ + assert isinstance(node, (list, nodes.Element)), \ 'The node%s does not have any items' % xpath assert len(node) == len(cls), \ 'The node%s has %d child nodes, not %r' % (xpath, len(node), len(cls)) |