Patchwork [02,of,11] py3: add b'' prefixes in test-abort-checkin.t

login
register
mail settings
Submitter Pulkit Goyal
Date Feb. 23, 2018, 6:15 p.m.
Message ID <70c096e42cb8a63a62ef.1519409715@workspace>
Download mbox | patch
Permalink /patch/28289/
State Accepted
Headers show

Comments

Pulkit Goyal - Feb. 23, 2018, 6:15 p.m.
# HG changeset patch
# User Pulkit Goyal <7895pulkit@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.

Patch

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