Patchwork D2610: tests: fix inline extension bytes in test-ssh-proto-unbundle.t

login
register
mail settings
Submitter phabricator
Date March 3, 2018, 11 p.m.
Message ID <5513a065d93989b37fd35d0576a65569@localhost.localdomain>
Download mbox | patch
Permalink /patch/28860/
State Not Applicable
Headers show

Comments

phabricator - March 3, 2018, 11 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG11b279a75bf1: tests: fix inline extension bytes in test-ssh-proto-unbundle.t (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2610?vs=6488&id=6494

REVISION DETAIL
  https://phab.mercurial-scm.org/D2610

AFFECTED FILES
  tests/test-ssh-proto-unbundle.t

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/tests/test-ssh-proto-unbundle.t b/tests/test-ssh-proto-unbundle.t
--- a/tests/test-ssh-proto-unbundle.t
+++ b/tests/test-ssh-proto-unbundle.t
@@ -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