D3630: py3: add b'' prefixes in tests/test-ssh.t and tests/test-ssh-bundle1.t
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Sun May 20 12:24:08 UTC 2018
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
1. skip-blame because just b'' prefixes
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D3630
AFFECTED FILES
tests/test-ssh-bundle1.t
tests/test-ssh.t
CHANGE DETAILS
diff --git a/tests/test-ssh.t b/tests/test-ssh.t
--- a/tests/test-ssh.t
+++ b/tests/test-ssh.t
@@ -457,12 +457,12 @@
>
> def wrappedpush(orig, repo, *args, **kwargs):
> res = orig(repo, *args, **kwargs)
- > repo.ui.write('local stdout\n')
+ > repo.ui.write(b'local stdout\n')
> repo.ui.flush()
> return res
>
> def extsetup(ui):
- > extensions.wrapfunction(exchange, 'push', wrappedpush)
+ > extensions.wrapfunction(exchange, b'push', wrappedpush)
> EOF
$ cat >> .hg/hgrc << EOF
@@ -572,7 +572,7 @@
$ cat > $TESTTMP/failhook << EOF
> def hook(ui, repo, **kwargs):
- > ui.write('hook failure!\n')
+ > ui.write(b'hook failure!\n')
> ui.flush()
> return 1
> EOF
diff --git a/tests/test-ssh-bundle1.t b/tests/test-ssh-bundle1.t
--- a/tests/test-ssh-bundle1.t
+++ b/tests/test-ssh-bundle1.t
@@ -444,11 +444,11 @@
>
> def wrappedpush(orig, repo, *args, **kwargs):
> res = orig(repo, *args, **kwargs)
- > repo.ui.write('local stdout\n')
+ > repo.ui.write(b'local stdout\n')
> return res
>
> def extsetup(ui):
- > extensions.wrapfunction(exchange, 'push', wrappedpush)
+ > extensions.wrapfunction(exchange, b'push', wrappedpush)
> EOF
$ cat >> .hg/hgrc << EOF
@@ -537,7 +537,7 @@
$ cat > $TESTTMP/failhook << EOF
> def hook(ui, repo, **kwargs):
- > ui.write('hook failure!\n')
+ > ui.write(b'hook failure!\n')
> ui.flush()
> return 1
> EOF
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list