From patchwork Sat May 19 20:25:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D3622: tests: fix test-parseindex2 on Python 3 From: phabricator X-Patchwork-Id: 31746 Message-Id: <1fad7bbde214f35c033b129233230ff9@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Sat, 19 May 2018 20:25:32 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG3de58f50afa2: tests: fix test-parseindex2 on Python 3 (authored by durin42, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3622?vs=8824&id=8829 REVISION DETAIL https://phab.mercurial-scm.org/D3622 AFFECTED FILES tests/test-parseindex2.py CHANGE DETAILS To: durin42, #hg-reviewers, pulkit Cc: mercurial-devel 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 @@ ) from mercurial import ( policy, + pycompat, ) parsers = policy.importmod(r'parsers') @@ -149,7 +150,7 @@ def testversionfail(testnumber, hexversion): stdout, stderr = importparsers(hexversion) # We include versionerrortext to distinguish from other ImportErrors. - errtext = "ImportError: %s" % parsers.versionerrortext + errtext = b"ImportError: %s" % pycompat.sysbytes(parsers.versionerrortext) if errtext not in stdout: printhexfail(testnumber, hexversion, stdout, expected="stdout to contain %r" % errtext)