tests: compare against a bytes in test-lock.py
skip-blame: just b'' prefixes
Differential Revision: https://phab.mercurial-scm.org/D5771
--- a/contrib/python3-whitelist Wed Jan 30 16:53:12 2019 -0800
+++ b/contrib/python3-whitelist Wed Jan 30 16:54:34 2019 -0800
@@ -363,6 +363,7 @@
test-linerange.py
test-locate.t
test-lock-badness.t
+test-lock.py
test-log-exthook.t
test-log-linerange.t
test-log.t
--- a/tests/test-lock.py Wed Jan 30 16:53:12 2019 -0800
+++ b/tests/test-lock.py Wed Jan 30 16:54:34 2019 -0800
@@ -290,7 +290,7 @@
self.fail("unexpected lock acquisition")
except error.LockHeld as why:
self.assertTrue(why.errno == errno.ETIMEDOUT)
- self.assertTrue(why.locker == "")
+ self.assertTrue(why.locker == b"")
state.assertlockexists(False)
if __name__ == '__main__':