Make sure we unlock the bzr tree again in the authors unit test.

This commit is contained in:
Soren Hansen
2010-12-15 11:57:56 +01:00
parent 38a0e491de
commit 64d3121e1f

View File

@@ -30,6 +30,7 @@ class ProjectTestCase(test.TrialTestCase):
import bzrlib.workingtree
tree = bzrlib.workingtree.WorkingTree.open('..')
tree.lock_read()
try:
parents = tree.get_parent_ids()
g = tree.branch.repository.get_graph()
for p in parents[1:]:
@@ -50,3 +51,5 @@ class ProjectTestCase(test.TrialTestCase):
self.assertTrue(len(missing) == 0,
'%r not listed in Authors' % missing)
finally:
tree.unlock()