py3: add some b'' to make test-lock-badness.t happy
authorYuya Nishihara <yuya@tcha.org>
Sat, 03 Mar 2018 10:39:48 -0500
changeset 36643 1e1c1bfb0be4
parent 36642 f6efb3c08c19
child 36644 e2b87e19c6ef
py3: add some b'' to make test-lock-badness.t happy
contrib/python3-whitelist
tests/test-lock-badness.t
--- a/contrib/python3-whitelist	Sat Mar 03 10:32:06 2018 -0500
+++ b/contrib/python3-whitelist	Sat Mar 03 10:39:48 2018 -0500
@@ -166,6 +166,7 @@
 test-journal-exists.t
 test-largefiles-small-disk.t
 test-locate.t
+test-lock-badness.t
 test-logexchange.t
 test-lrucachedict.py
 test-mactext.t
--- a/tests/test-lock-badness.t	Sat Mar 03 10:32:06 2018 -0500
+++ b/tests/test-lock-badness.t	Sat Mar 03 10:39:48 2018 -0500
@@ -22,8 +22,8 @@
   > def acquiretestlock(repo, releaseexc):
   >     def unlock():
   >         if releaseexc:
-  >             raise error.Abort('expected release exception')
-  >     l = repo._lock(repo.vfs, 'testlock', False, unlock, None, 'test lock')
+  >             raise error.Abort(b'expected release exception')
+  >     l = repo._lock(repo.vfs, b'testlock', False, unlock, None, b'test lock')
   >     return l
   > 
   > @command(b'testlockexc')
@@ -35,7 +35,7 @@
   >         try:
   >             testlock = acquiretestlock(repo, False)
   >         except error.LockHeld:
-  >             raise error.Abort('lockfile on disk even after releasing!')
+  >             raise error.Abort(b'lockfile on disk even after releasing!')
   >         testlock.release()
   > EOF
   $ cat >> $HGRCPATH << EOF