Patchwork D2612: tests: fix bytes literals in test-fncache.t

login
register
mail settings
Submitter phabricator
Date March 3, 2018, 11 p.m.
Message ID <39ad3ef6f9141af2732f9fdab94d547a@localhost.localdomain>
Download mbox | patch
Permalink /patch/28863/
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 rHG3715a5ffcf92: tests: fix bytes literals in test-fncache.t (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2612?vs=6490&id=6496

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

AFFECTED FILES
  tests/test-fncache.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-fncache.t b/tests/test-fncache.t
--- a/tests/test-fncache.t
+++ b/tests/test-fncache.t
@@ -259,14 +259,14 @@ 
   > def wrapper(orig, self, *args, **kwargs):
   >     tr = orig(self, *args, **kwargs)
   >     def fail(tr):
-  >         raise error.Abort("forced transaction failure")
+  >         raise error.Abort(b"forced transaction failure")
   >     # zzz prefix to ensure it sorted after store.write
-  >     tr.addfinalize('zzz-forcefails', fail)
+  >     tr.addfinalize(b'zzz-forcefails', fail)
   >     return tr
   > 
   > def uisetup(ui):
   >     extensions.wrapfunction(
-  >         localrepo.localrepository, 'transaction', wrapper)
+  >         localrepo.localrepository, b'transaction', wrapper)
   > 
   > cmdtable = {}
   >