py3: add b'' prefixes in test-transplant.t
authorPulkit Goyal <7895pulkit@gmail.com>
Mon, 19 Feb 2018 15:28:54 +0530
changeset 36326 a2cbff474821
parent 36325 9a75619776ca
child 36327 58c1368ab629
py3: add b'' prefixes in test-transplant.t # skip-blame because we are just adding b'' Differential Revision: https://phab.mercurial-scm.org/D2352
tests/test-transplant.t
--- a/tests/test-transplant.t	Mon Feb 19 15:28:16 2018 +0530
+++ b/tests/test-transplant.t	Mon Feb 19 15:28:54 2018 +0530
@@ -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):