~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_version.py

(robertc) Deprecate WorkingTree.pending_merges.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""Tests for versioning of bzrlib."""
19
19
 
20
 
from bzrlib import version
 
20
from bzrlib import version, workingtree
21
21
from bzrlib.tests import TestCase, TestSkipped
22
22
 
23
23
class TestBzrlibVersioning(TestCase):
32
32
        if src_tree is None:
33
33
            raise TestSkipped("bzr tests aren't run from a bzr working tree")
34
34
        else:
35
 
            source_version = src_tree.last_revision()
 
35
            # ensure that what we got was in fact a working tree instance.
 
36
            self.assertIsInstance(src_tree, workingtree.WorkingTree)