py3: add more missing b'' prefixes in test files
authorPulkit Goyal <pulkit@yandex-team.ru>
Tue, 04 Sep 2018 17:33:59 +0300
changeset 39449 c3491d3f8984
parent 39448 7450f6500b6e
child 39450 5bf99c27a7b6
py3: add more missing b'' prefixes in test files # skip-blame because just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D4458
tests/test-hgweb-commands.t
tests/test-http-permissions.t
--- a/tests/test-hgweb-commands.t	Tue Sep 04 17:33:22 2018 +0300
+++ b/tests/test-hgweb-commands.t	Tue Sep 04 17:33:59 2018 +0300
@@ -26,7 +26,7 @@
   $ hg ci -Ambranch
   $ hg branch unstable
   marked working directory as branch unstable
-  >>> open('msg', 'wb').write('branch commit with null character: \0\n')
+  >>> open('msg', 'wb').write(b'branch commit with null character: \0\n')
   $ hg ci -l msg
   $ rm msg
 
--- a/tests/test-http-permissions.t	Tue Sep 04 17:33:22 2018 +0300
+++ b/tests/test-http-permissions.t	Tue Sep 04 17:33:59 2018 +0300
@@ -13,16 +13,16 @@
   >         return super(testenvhgweb, self).__call__(env, respond)
   > hgweb_mod.hgweb = testenvhgweb
   > 
-  > @wireprotov1server.wireprotocommand('customreadnoperm')
+  > @wireprotov1server.wireprotocommand(b'customreadnoperm')
   > def customread(repo, proto):
   >     return b'read-only command no defined permissions\n'
-  > @wireprotov1server.wireprotocommand('customwritenoperm')
+  > @wireprotov1server.wireprotocommand(b'customwritenoperm')
   > def customwritenoperm(repo, proto):
   >     return b'write command no defined permissions\n'
-  > @wireprotov1server.wireprotocommand('customreadwithperm', permission='pull')
+  > @wireprotov1server.wireprotocommand(b'customreadwithperm', permission=b'pull')
   > def customreadwithperm(repo, proto):
   >     return b'read-only command w/ defined permissions\n'
-  > @wireprotov1server.wireprotocommand('customwritewithperm', permission='push')
+  > @wireprotov1server.wireprotocommand(b'customwritewithperm', permission=b'push')
   > def customwritewithperm(repo, proto):
   >     return b'write command w/ defined permissions\n'
   > EOF