diff tests/test-commandserver.t @ 33097:fce4ed2912bb

py3: make sure commands name are bytes in tests
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 25 Jun 2017 08:20:05 +0530
parents 7b7f55d56076
children 29653495cece
line wrap: on
line diff
--- a/tests/test-commandserver.t	Sun Jun 25 03:11:55 2017 +0530
+++ b/tests/test-commandserver.t	Sun Jun 25 08:20:05 2017 +0530
@@ -575,16 +575,16 @@
   > from mercurial import commands, registrar
   > cmdtable = {}
   > command = registrar.command(cmdtable)
-  > @command("debuggetpass", norepo=True)
+  > @command(b"debuggetpass", norepo=True)
   > def debuggetpass(ui):
   >     ui.write("%s\\n" % ui.getpass())
-  > @command("debugprompt", norepo=True)
+  > @command(b"debugprompt", norepo=True)
   > def debugprompt(ui):
   >     ui.write("%s\\n" % ui.prompt("prompt:"))
-  > @command("debugreadstdin", norepo=True)
+  > @command(b"debugreadstdin", norepo=True)
   > def debugreadstdin(ui):
   >     ui.write("read: %r\n" % sys.stdin.read(1))
-  > @command("debugwritestdout", norepo=True)
+  > @command(b"debugwritestdout", norepo=True)
   > def debugwritestdout(ui):
   >     os.write(1, "low-level stdout fd and\n")
   >     sys.stdout.write("stdout should be redirected to /dev/null\n")