tests: compare against a bytes in test-lock.py
authorGregory Szorc <gregory.szorc@gmail.com>
Wed, 30 Jan 2019 16:54:34 -0800
changeset 41482 b58d608ec6a0
parent 41481 5880b4e762cd
child 41483 46ab0c6b28dc
tests: compare against a bytes in test-lock.py skip-blame: just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D5771
contrib/python3-whitelist
tests/test-lock.py
--- 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__':