D5757: tests: use items() in test-remotefilelog-datapack.py

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Wed Jan 30 17:13:24 EST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG59854e657999: tests: use items() in test-remotefilelog-datapack.py (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5757?vs=13594&id=13601

REVISION DETAIL
  https://phab.mercurial-scm.org/D5757

AFFECTED FILES
  tests/test-remotefilelog-datapack.py

CHANGE DETAILS

diff --git a/tests/test-remotefilelog-datapack.py b/tests/test-remotefilelog-datapack.py
--- a/tests/test-remotefilelog-datapack.py
+++ b/tests/test-remotefilelog-datapack.py
@@ -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])]
@@ -258,7 +258,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)
 



To: indygreg, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list