D4458: py3: add more missing b'' prefixes in test files
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Tue Sep 4 12:30:04 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc3491d3f8984: py3: add more missing b'' prefixes in test files (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D4458?vs=10737&id=10748
REVISION DETAIL
https://phab.mercurial-scm.org/D4458
AFFECTED FILES
tests/test-hgweb-commands.t
tests/test-http-permissions.t
CHANGE DETAILS
diff --git a/tests/test-http-permissions.t b/tests/test-http-permissions.t
--- a/tests/test-http-permissions.t
+++ b/tests/test-http-permissions.t
@@ -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
diff --git a/tests/test-hgweb-commands.t b/tests/test-hgweb-commands.t
--- a/tests/test-hgweb-commands.t
+++ b/tests/test-hgweb-commands.t
@@ -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
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list