##// END OF EJS Templates
py3: use dict.items() instead of dict.iteritems()...
Pulkit Goyal -
r40765:5d1550b9 default
parent child Browse files
Show More
@@ -161,11 +161,11 b' class histpacktests(unittest.TestCase):'
161 pack = self.createPack(revisions)
161 pack = self.createPack(revisions)
162
162
163 # Verify the pack contents
163 # Verify the pack contents
164 for (filename, node), (p1, p2, lastnode) in allentries.iteritems():
164 for (filename, node), (p1, p2, lastnode) in allentries.items():
165 ancestors = pack.getancestors(filename, node)
165 ancestors = pack.getancestors(filename, node)
166 self.assertEquals(ancestorcounts[(filename, node)],
166 self.assertEquals(ancestorcounts[(filename, node)],
167 len(ancestors))
167 len(ancestors))
168 for anode, (ap1, ap2, alinknode, copyfrom) in ancestors.iteritems():
168 for anode, (ap1, ap2, alinknode, copyfrom) in ancestors.items():
169 ep1, ep2, elinknode = allentries[(filename, anode)]
169 ep1, ep2, elinknode = allentries[(filename, anode)]
170 self.assertEquals(ap1, ep1)
170 self.assertEquals(ap1, ep1)
171 self.assertEquals(ap2, ep2)
171 self.assertEquals(ap2, ep2)
General Comments 0
You need to be logged in to leave comments. Login now