tests: use items() in test-remotefilelog-datapack.py
Performance doesn't matter in tests. iteritems() doesn't exist
in Python 3.
Differential Revision: https://phab.mercurial-scm.org/D5757
--- a/tests/test-remotefilelog-datapack.py Wed Jan 30 13:21:43 2019 -0800
+++ b/tests/test-remotefilelog-datapack.py Wed Jan 30 13:22:42 2019 -0800
@@ -158,7 +158,7 @@
pack = self.createPack(revisions)
# Verify the pack contents
- for (filename, node, lastnode), content in sorted(blobs.iteritems()):
+ for (filename, node, lastnode), content in sorted(blobs.items()):
chain = pack.getdeltachain(filename, node)
for entry in chain:
expectedcontent = blobs[(entry[0], entry[1], entry[3])]
@@ -259,7 +259,7 @@
self.assertEqual(pack.params.fanoutprefix,
basepack.LARGEFANOUTPREFIX)
- for (filename, node), content in blobs.iteritems():
+ for (filename, node), content in blobs.items():
actualcontent = pack.getdeltachain(filename, node)[0][4]
self.assertEqual(actualcontent, content)