Mercurial > hg
changeset 41472:6309ce86fa82
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
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 30 Jan 2019 13:22:42 -0800 |
parents | 268325697a47 |
children | 90b3898cf0db |
files | tests/test-remotefilelog-datapack.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)