Rev 5084: Cleanup test from overly cautious checks. in file:///home/vila/src/bzr/bugs/533547-dsrt-kind/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Wed Mar 10 09:33:04 GMT 2010
At file:///home/vila/src/bzr/bugs/533547-dsrt-kind/
------------------------------------------------------------
revno: 5084
revision-id: v.ladeuil+lp at free.fr-20100310093304-4245t4tazd4sxoav
parent: v.ladeuil+lp at free.fr-20100310093125-drhtm9pdnm1fo7gf
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 533547-dsrt-kind
timestamp: Wed 2010-03-10 10:33:04 +0100
message:
Cleanup test from overly cautious checks.
-------------- next part --------------
=== modified file 'bzrlib/tests/per_workingtree/test_revision_tree.py'
--- a/bzrlib/tests/per_workingtree/test_revision_tree.py 2010-03-10 09:28:44 +0000
+++ b/bzrlib/tests/per_workingtree/test_revision_tree.py 2010-03-10 09:33:04 +0000
@@ -117,12 +117,7 @@
self.addCleanup(tree.unlock)
parents = tree.get_parent_ids()
self.assertEqual(['this', 'other'], parents)
- try:
- basis = tree.revision_tree(parents[0])
- except errors.NoSuchRevisionInTree:
- raise tests.TestNotApplicable(
- "Tree type %s doesn't cache the basis revision tree."
- % type(tree))
+ basis = tree.revision_tree(parents[0])
basis.lock_read()
self.addCleanup(basis.unlock)
self.assertRaises(errors.NoSuchId, basis.kind, 'a-id')
@@ -134,7 +129,6 @@
raise tests.TestNotApplicable(
'Tree type %s caches only the basis revision tree.'
% type(tree))
-
other.lock_read()
self.addCleanup(other.unlock)
self.assertRaises(errors.NoSuchId, other.kind, 'b-id')
More information about the bazaar-commits
mailing list