tests: fix bytes literals in test-fncache.t
authorAugie Fackler <augie@google.com>
Sat, 03 Mar 2018 17:08:41 -0500
changeset 36662 3715a5ffcf92
parent 36661 b76248e51605
child 36663 2dce0049176c
tests: fix bytes literals in test-fncache.t # skip-blame just b prefixes Differential Revision: https://phab.mercurial-scm.org/D2612
tests/test-fncache.t
--- a/tests/test-fncache.t	Sat Mar 03 17:08:05 2018 -0500
+++ b/tests/test-fncache.t	Sat Mar 03 17:08:41 2018 -0500
@@ -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 = {}
   >