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 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