]> granicus.if.org Git - python/commit
Fix test_iterlen by returning the iterator of dict views. Problem is that
authorBrett Cannon <bcannon@gmail.com>
Thu, 22 Feb 2007 04:45:13 +0000 (04:45 +0000)
committerBrett Cannon <bcannon@gmail.com>
Thu, 22 Feb 2007 04:45:13 +0000 (04:45 +0000)
commiteb6b0eec297d929aa5961f0f6a957b47fd945006
tree15bd68959ace8b71f4aad5d8e503542c9eaee7ef
parent861fd6fdb9592e6d58a281521dea53d47ecc6adf
Fix test_iterlen by returning the iterator of dict views.  Problem is that
iteritems and itervalues' previous object were both an iterator *and* and
iterable.  The tests expected an iterator but were given an iterable.

Should the 2to3 conversion for iter(values|items|keys) change the code to
``iter(dict.keys())`` to be more compatible?
BROKEN
Lib/test/test_iterlen.py