diff options
author | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2014-04-30 23:25:44 +0900 |
---|---|---|
committer | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2014-04-30 23:25:44 +0900 |
commit | 2d1549b35a4adea66aebd0b7d9266731dd7ece6f (patch) | |
tree | 7f82f3e5a85f1946276416a44272b6860c355d4a /tests/test_autosummary.py | |
parent | 6ae3b68859562f07a1a7e215a7b55dce800305a9 (diff) | |
download | sphinx-git-2d1549b35a4adea66aebd0b7d9266731dd7ece6f.tar.gz |
wrap py3 iterators with list() for each places that expect a list object. refs #1350.
Diffstat (limited to 'tests/test_autosummary.py')
-rw-r--r-- | tests/test_autosummary.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_autosummary.py b/tests/test_autosummary.py index 7504f11cb..f83e5f33d 100644 --- a/tests/test_autosummary.py +++ b/tests/test_autosummary.py @@ -35,7 +35,7 @@ def test_mangle_signature(): (a=1, b=<SomeClass: a, b, c>, c=3) :: ([a, b, c]) """ - TEST = [map(lambda x: x.strip(), x.split("::")) for x in TEST.split("\n") + TEST = [[y.strip() for y in x.split("::")] for x in TEST.split("\n") if '::' in x] for inp, outp in TEST: res = mangle_signature(inp).strip().replace(u"\u00a0", " ") |