Patchwork D2352: py3: add b'' prefixes in test-transplant.t

login
register
mail settings
Submitter phabricator
Date Feb. 20, 2018, 1:33 p.m.
Message ID <60c2583eb171f00e4cf0b4bf7f121731@localhost.localdomain>
Download mbox | patch
Permalink /patch/28167/
State Not Applicable
Headers show

Comments

phabricator - Feb. 20, 2018, 1:33 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa2cbff474821: py3: add b&#039;&#039; prefixes in test-transplant.t (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2352?vs=5920&id=5930

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

AFFECTED FILES
  tests/test-transplant.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-transplant.t b/tests/test-transplant.t
--- a/tests/test-transplant.t
+++ b/tests/test-transplant.t
@@ -891,14 +891,14 @@ 
   > # emulate that patch.patch() is aborted at patching on "abort" file
   > from mercurial import error, extensions, patch as patchmod
   > def patch(orig, ui, repo, patchname,
-  >           strip=1, prefix='', files=None,
-  >           eolmode='strict', similarity=0):
+  >           strip=1, prefix=b'', files=None,
+  >           eolmode=b'strict', similarity=0):
   >     if files is None:
   >         files = set()
   >     r = orig(ui, repo, patchname,
   >         strip=strip, prefix=prefix, files=files,
   >         eolmode=eolmode, similarity=similarity)
-  >     if 'abort' in files:
+  >     if b'abort' in files:
   >         raise error.PatchError('intentional error while patching')
   >     return r
   > def extsetup(ui):