[PATCH 02 of 11] py3: add b'' prefixes in test-abort-checkin.t
Pulkit Goyal
7895pulkit at gmail.com
Fri Feb 23 13:15:15 EST 2018
# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1519385237 -19800
# Fri Feb 23 16:57:17 2018 +0530
# Node ID 70c096e42cb8a63a62efe69b87cd7ccc5c539dba
# Parent ea8a43155c3d51289609afeda8659b4d604b2e1e
py3: add b'' prefixes in test-abort-checkin.t
# skip-blame because we just added a b'' prefix.
diff --git a/tests/test-abort-checkin.t b/tests/test-abort-checkin.t
--- a/tests/test-abort-checkin.t
+++ b/tests/test-abort-checkin.t
@@ -1,9 +1,9 @@
$ cat > abortcommit.py <<EOF
> from mercurial import error
> def hook(**args):
- > raise error.Abort("no commits allowed")
+ > raise error.Abort(b"no commits allowed")
> def reposetup(ui, repo):
- > repo.ui.setconfig("hooks", "pretxncommit.nocommits", hook)
+ > repo.ui.setconfig(b"hooks", b"pretxncommit.nocommits", hook)
> EOF
$ abspath=`pwd`/abortcommit.py
More information about the Mercurial-devel
mailing list