summaryrefslogtreecommitdiff
path: root/tests/test_intl.py
diff options
context:
space:
mode:
authorTakayuki Shimizukawa <shimizukawa@gmail.com>2014-04-30 23:25:44 +0900
committerTakayuki Shimizukawa <shimizukawa@gmail.com>2014-04-30 23:25:44 +0900
commit2d1549b35a4adea66aebd0b7d9266731dd7ece6f (patch)
tree7f82f3e5a85f1946276416a44272b6860c355d4a /tests/test_intl.py
parent6ae3b68859562f07a1a7e215a7b55dce800305a9 (diff)
downloadsphinx-git-2d1549b35a4adea66aebd0b7d9266731dd7ece6f.tar.gz
wrap py3 iterators with list() for each places that expect a list object. refs #1350.
Diffstat (limited to 'tests/test_intl.py')
-rw-r--r--tests/test_intl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_intl.py b/tests/test_intl.py
index b4ce96449..bb54e5df9 100644
--- a/tests/test_intl.py
+++ b/tests/test_intl.py
@@ -98,7 +98,7 @@ def assert_elem(elem, texts=None, refs=None, names=None):
_texts = elem_gettexts(elem)
assert _texts == texts
if refs is not None:
- _refs = map(elem_getref, elem.findall('reference'))
+ _refs = [elem_getref(x) for x in elem.findall('reference')]
assert _refs == refs
if names is not None:
_names = elem.attrib.get('names').split()