tests: fix inline extension bytes in test-ssh-proto-unbundle.t
authorAugie Fackler <augie@google.com>
Sat, 03 Mar 2018 17:07:18 -0500
changeset 36660 11b279a75bf1
parent 36659 dc11f257ad1d
child 36661 b76248e51605
tests: fix inline extension bytes in test-ssh-proto-unbundle.t # skip-blame just b prefixes Differential Revision: https://phab.mercurial-scm.org/D2610
tests/test-ssh-proto-unbundle.t
--- a/tests/test-ssh-proto-unbundle.t	Sat Mar 03 16:38:17 2018 -0500
+++ b/tests/test-ssh-proto-unbundle.t	Sat Mar 03 17:07:18 2018 -0500
@@ -158,36 +158,36 @@
   > from __future__ import print_function
   > import sys
   > def hook1line(ui, repo, **kwargs):
-  >     ui.write('ui.write 1 line\n')
+  >     ui.write(b'ui.write 1 line\n')
   >     return 1
   > def hook2lines(ui, repo, **kwargs):
-  >     ui.write('ui.write 2 lines 1\n')
-  >     ui.write('ui.write 2 lines 2\n')
+  >     ui.write(b'ui.write 2 lines 1\n')
+  >     ui.write(b'ui.write 2 lines 2\n')
   >     return 1
   > def hook1lineflush(ui, repo, **kwargs):
-  >     ui.write('ui.write 1 line flush\n')
+  >     ui.write(b'ui.write 1 line flush\n')
   >     ui.flush()
   >     return 1
   > def hookmultiflush(ui, repo, **kwargs):
-  >     ui.write('ui.write 1st\n')
+  >     ui.write(b'ui.write 1st\n')
   >     ui.flush()
-  >     ui.write('ui.write 2nd\n')
+  >     ui.write(b'ui.write 2nd\n')
   >     ui.flush()
   >     return 1
   > def hookwriteandwriteerr(ui, repo, **kwargs):
-  >     ui.write('ui.write 1\n')
-  >     ui.write_err('ui.write_err 1\n')
-  >     ui.write('ui.write 2\n')
-  >     ui.write_err('ui.write_err 2\n')
+  >     ui.write(b'ui.write 1\n')
+  >     ui.write_err(b'ui.write_err 1\n')
+  >     ui.write(b'ui.write 2\n')
+  >     ui.write_err(b'ui.write_err 2\n')
   >     return 1
   > def hookprintstdout(ui, repo, **kwargs):
   >     print('printed line')
   >     return 1
   > def hookprintandwrite(ui, repo, **kwargs):
   >     print('print 1')
-  >     ui.write('ui.write 1\n')
+  >     ui.write(b'ui.write 1\n')
   >     print('print 2')
-  >     ui.write('ui.write 2\n')
+  >     ui.write(b'ui.write 2\n')
   >     return 1
   > def hookprintstderrandstdout(ui, repo, **kwargs):
   >     print('stdout 1')
@@ -1901,10 +1901,10 @@
 
   $ cat > $TESTTMP/hook << EOF
   > def hookuiwrite(ui, repo, **kwargs):
-  >     ui.write('ui.write 1\n')
-  >     ui.write_err('ui.write_err 1\n')
-  >     ui.write('ui.write 2\n')
-  >     ui.write_err('ui.write_err 2\n')
+  >     ui.write(b'ui.write 1\n')
+  >     ui.write_err(b'ui.write_err 1\n')
+  >     ui.write(b'ui.write 2\n')
+  >     ui.write_err(b'ui.write_err 2\n')
   > EOF
 
   $ hg init uiwriterepo