Mercurial > hg
changeset 39057:850fe0b9c0c0
tests: add missing b'' prefix in test-check-code.t
It now passes on Python 3.
# skip-blame b prefix
Differential Revision: https://phab.mercurial-scm.org/D4250
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 10 Aug 2018 02:18:41 -0400 |
parents | c52a8af4052a |
children | a271466cb53a |
files | contrib/python3-whitelist tests/test-check-code.t |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/python3-whitelist Fri Aug 10 02:17:50 2018 -0400 +++ b/contrib/python3-whitelist Fri Aug 10 02:18:41 2018 -0400 @@ -51,6 +51,7 @@ test-cbor.py test-censor.t test-changelog-exec.t +test-check-code.t test-check-commit.t test-check-execute.t test-check-interfaces.py
--- a/tests/test-check-code.t Fri Aug 10 02:17:50 2018 -0400 +++ b/tests/test-check-code.t Fri Aug 10 02:18:41 2018 -0400 @@ -22,7 +22,7 @@ >>> commands = [] >>> with open('mercurial/debugcommands.py', 'rb') as fh: ... for line in fh: - ... m = re.match("^@command\('([a-z]+)", line) + ... m = re.match(b"^@command\('([a-z]+)", line) ... if m: ... commands.append(m.group(1)) >>> scommands = list(sorted(commands))