Mercurial > hg
comparison tests/test-lock.py @ 41482:b58d608ec6a0
tests: compare against a bytes in test-lock.py
skip-blame: just b'' prefixes
Differential Revision: https://phab.mercurial-scm.org/D5771
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 30 Jan 2019 16:54:34 -0800 |
parents | 5880b4e762cd |
children | 2372284d9457 |
comparison
equal
deleted
inserted
replaced
41481:5880b4e762cd | 41482:b58d608ec6a0 |
---|---|
288 try: | 288 try: |
289 state.makelock(timeout=0) | 289 state.makelock(timeout=0) |
290 self.fail("unexpected lock acquisition") | 290 self.fail("unexpected lock acquisition") |
291 except error.LockHeld as why: | 291 except error.LockHeld as why: |
292 self.assertTrue(why.errno == errno.ETIMEDOUT) | 292 self.assertTrue(why.errno == errno.ETIMEDOUT) |
293 self.assertTrue(why.locker == "") | 293 self.assertTrue(why.locker == b"") |
294 state.assertlockexists(False) | 294 state.assertlockexists(False) |
295 | 295 |
296 if __name__ == '__main__': | 296 if __name__ == '__main__': |
297 silenttestrunner.main(__name__) | 297 silenttestrunner.main(__name__) |