Mercurial > hg
comparison tests/test-lock-badness.t @ 33097:fce4ed2912bb
py3: make sure commands name are bytes in tests
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 25 Jun 2017 08:20:05 +0530 |
parents | 46ba2cdda476 |
children | 9153871d50e0 |
comparison
equal
deleted
inserted
replaced
33096:d9962854a4a2 | 33097:fce4ed2912bb |
---|---|
24 > if releaseexc: | 24 > if releaseexc: |
25 > raise error.Abort('expected release exception') | 25 > raise error.Abort('expected release exception') |
26 > l = repo._lock(repo.vfs, 'testlock', False, unlock, None, 'test lock') | 26 > l = repo._lock(repo.vfs, 'testlock', False, unlock, None, 'test lock') |
27 > return l | 27 > return l |
28 > | 28 > |
29 > @command('testlockexc') | 29 > @command(b'testlockexc') |
30 > def testlockexc(ui, repo): | 30 > def testlockexc(ui, repo): |
31 > testlock = acquiretestlock(repo, True) | 31 > testlock = acquiretestlock(repo, True) |
32 > try: | 32 > try: |
33 > testlock.release() | 33 > testlock.release() |
34 > finally: | 34 > finally: |