Patchwork D3488: tests: b prefixes on some inline python in test-convert-cvs.t

login
register
mail settings
Submitter phabricator
Date May 8, 2018, 6:23 p.m.
Message ID <7bc37e6930d6da7097a7369a536ea27b@localhost.localdomain>
Download mbox | patch
Permalink /patch/31395/
State Not Applicable
Headers show

Comments

phabricator - May 8, 2018, 6:23 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGcf76642cb2bb: tests: b prefixes on some inline python in test-convert-cvs.t (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3488?vs=8540&id=8563

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

AFFECTED FILES
  tests/test-convert-cvs.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-convert-cvs.t b/tests/test-convert-cvs.t
--- a/tests/test-convert-cvs.t
+++ b/tests/test-convert-cvs.t
@@ -522,8 +522,8 @@ 
 
   $ mkdir -p cvsrepo/transcoding
   $ python <<EOF
-  > fp = open('cvsrepo/transcoding/file,v', 'w')
-  > fp.write(('''
+  > fp = open('cvsrepo/transcoding/file,v', 'wb')
+  > fp.write((b'''
   > head	1.4;
   > access;
   > symbols
@@ -570,7 +570,7 @@ 
   > 
   > 1.4
   > log
-  > @''' + u'\u3042'.encode('cp932') + ''' (cp932)
+  > @''' + u'\u3042'.encode('cp932') + b''' (cp932)
   > @
   > text
   > @1
@@ -582,16 +582,16 @@ 
   > 
   > 1.3
   > log
-  > @''' + u'\u3042'.encode('euc-jp') + ''' (euc-jp)
+  > @''' + u'\u3042'.encode('euc-jp') + b''' (euc-jp)
   > @
   > text
   > @d4 1
   > @
   > 
   > 
   > 1.2
   > log
-  > @''' + u'\u3042'.encode('utf-8') +  ''' (utf-8)
+  > @''' + u'\u3042'.encode('utf-8') +  b''' (utf-8)
   > @
   > text
   > @d3 1