# HG changeset patch # User Pulkit Goyal # Date 2018-11-26 12:37:48 # Node ID 5d1550b9a533c279bb14fa2889d857123d146284 # Parent 9446d5aa0f325b5822d0bb325ea6c6cde2a15cb2 py3: use dict.items() instead of dict.iteritems() dict.iteritems() does not exist on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5304 diff --git a/tests/test-remotefilelog-histpack.py b/tests/test-remotefilelog-histpack.py --- a/tests/test-remotefilelog-histpack.py +++ b/tests/test-remotefilelog-histpack.py @@ -161,11 +161,11 @@ class histpacktests(unittest.TestCase): pack = self.createPack(revisions) # Verify the pack contents - for (filename, node), (p1, p2, lastnode) in allentries.iteritems(): + for (filename, node), (p1, p2, lastnode) in allentries.items(): ancestors = pack.getancestors(filename, node) self.assertEquals(ancestorcounts[(filename, node)], len(ancestors)) - for anode, (ap1, ap2, alinknode, copyfrom) in ancestors.iteritems(): + for anode, (ap1, ap2, alinknode, copyfrom) in ancestors.items(): ep1, ep2, elinknode = allentries[(filename, anode)] self.assertEquals(ap1, ep1) self.assertEquals(ap2, ep2)