This revision was automatically updated to reflect the committed changes. Closed by commit rHGa450d460774e: tests: restore Python 3 compat in test-parseindex2.py (authored by durin42, committed by ).
REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D4182?vs=10125&id=10291 REVISION DETAIL https://phab.mercurial-scm.org/D4182 AFFECTED FILES tests/test-parseindex2.py CHANGE DETAILS diff --git a/tests/test-parseindex2.py b/tests/test-parseindex2.py --- a/tests/test-parseindex2.py +++ b/tests/test-parseindex2.py @@ -15,6 +15,7 @@ nullrev, ) from mercurial import ( + node as nodemod, policy, pycompat, ) @@ -201,7 +202,7 @@ try: self.assertEqual( ix[r[7]], i, - 'Reverse lookup inconsistent for %r' % r[7].encode('hex')) + 'Reverse lookup inconsistent for %r' % nodemod.hex(r[7])) except TypeError: # pure version doesn't support this break To: durin42, #hg-reviewers, pulkit Cc: mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel