diff options
author | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2014-04-29 21:20:56 +0900 |
---|---|---|
committer | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2014-04-29 21:20:56 +0900 |
commit | ce4d342e20739ab994a451f367d5bce2c5edb5d2 (patch) | |
tree | 025c7e7b7248a22c3ee04d413635c385fc5e8c49 /tests/test_autosummary.py | |
parent | c3c879f2c63afbb39ad4d76ecc083cddd41d9946 (diff) | |
download | sphinx-git-ce4d342e20739ab994a451f367d5bce2c5edb5d2.tar.gz |
use six privided iteritems(),itervalues() to support py2/py3 in one source. refs #1350.
Diffstat (limited to 'tests/test_autosummary.py')
-rw-r--r-- | tests/test_autosummary.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_autosummary.py b/tests/test_autosummary.py index fc506cd95..7504f11cb 100644 --- a/tests/test_autosummary.py +++ b/tests/test_autosummary.py @@ -10,6 +10,8 @@ """ import sys +from six import iteritems + from sphinx.ext.autosummary import mangle_signature from util import with_app, test_roots @@ -97,6 +99,6 @@ def test_get_items_summary(): 'noSentence': "this doesn't start with a", 'emptyLine': "This is the real summary", } - for key, expected in expected_values.iteritems(): + for key, expected in iteritems(expected_values): assert autosummary_items[key][2] == expected, 'Summary for %s was %r -'\ ' expected %r' % (key, autosummary_items[key], expected) |