Patchwork D3789: py3: make tests/test-impexp-branch.t compatible with Python 3

login
register
mail settings
Submitter phabricator
Date June 18, 2018, 12:33 p.m.
Message ID <8e2c963a992763600054b23f323e421f@localhost.localdomain>
Download mbox | patch
Permalink /patch/32261/
State Not Applicable
Headers show

Comments

phabricator - June 18, 2018, 12:33 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe033fd788bf8: py3: make tests/test-impexp-branch.t compatible with Python 3 (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3789?vs=9160&id=9172

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

AFFECTED FILES
  tests/test-impexp-branch.t

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-impexp-branch.t b/tests/test-impexp-branch.t
--- a/tests/test-impexp-branch.t
+++ b/tests/test-impexp-branch.t
@@ -75,8 +75,8 @@ 
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   >>> import re
   >>> p = open('../r1.patch', 'rb').read()
-  >>> p = re.sub(r'Parent\s+', 'Parent ', p)
-  >>> open('../r1-ws.patch', 'wb').write(p)
+  >>> p = re.sub(br'Parent\s+', b'Parent ', p)
+  >>> open('../r1-ws.patch', 'wb').write(p) and None
   $ hg import --exact ../r1-ws.patch
   applying ../r1-ws.patch