changeset 36740:2aff6daf7790

py3: byte-stringify test-blackbox.t
author Yuya Nishihara <yuya@tcha.org>
date Sun, 04 Mar 2018 16:55:51 -0500
parents f4a508f4ea87
children 7a25f6cfebe8
files contrib/python3-whitelist tests/test-blackbox.t
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/python3-whitelist	Sun Mar 04 16:54:14 2018 -0500
+++ b/contrib/python3-whitelist	Sun Mar 04 16:55:51 2018 -0500
@@ -16,6 +16,7 @@
 test-basic.t
 test-bheads.t
 test-bisect2.t
+test-blackbox.t
 test-bookmarks-current.t
 test-bookmarks-merge.t
 test-bookmarks-rebase.t
--- a/tests/test-blackbox.t	Sun Mar 04 16:54:14 2018 -0500
+++ b/tests/test-blackbox.t	Sun Mar 04 16:55:51 2018 -0500
@@ -265,7 +265,7 @@
   > from mercurial import context, error, extensions
   > x=[False]
   > def status(orig, *args, **opts):
-  >     args[0].repo().ui.log("broken", "recursion?")
+  >     args[0].repo().ui.log(b"broken", b"recursion?")
   >     return orig(*args, **opts)
   > def reposetup(ui, repo):
   >     extensions.wrapfunction(context.basectx, 'status', status)
@@ -344,7 +344,7 @@
   > from mercurial import registrar, scmutil
   > cmdtable = {}
   > command = registrar.command(cmdtable)
-  > @command('raise')
+  > @command(b'raise')
   > def raisecmd(*args):
   >     raise RuntimeError('raise')
   > EOF