~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bundle.py

  • Committer: Alexander Belchenko
  • Date: 2007-11-01 09:52:45 UTC
  • mto: This revision was merged to the branch mainline in revision 2957.
  • Revision ID: bialix@ukr.net-20071101095245-qmmtwknzalx2b33u
selftest: use SymlinkFeature instead of TestSkipped where appropriate

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
                           NoSuchFile,)
41
41
from bzrlib.merge import Merge3Merger
42
42
from bzrlib.repofmt import knitrepo
43
 
from bzrlib.osutils import has_symlinks, sha_file
44
 
from bzrlib.tests import (TestCaseInTempDir, TestCaseWithTransport,
45
 
                          TestCase, TestSkipped, test_commit)
 
43
from bzrlib.osutils import sha_file
 
44
from bzrlib.tests import (
 
45
    SymlinkFeature,
 
46
    TestCase,
 
47
    TestCaseInTempDir,
 
48
    TestCaseWithTransport,
 
49
    TestSkipped,
 
50
    test_commit,
 
51
    )
46
52
from bzrlib.transform import TreeTransform
47
53
 
48
54
 
641
647
        bundle = self.get_valid_bundle('a@cset-0-6', 'a@cset-0-7')
642
648
 
643
649
    def test_symlink_bundle(self):
644
 
        if not has_symlinks():
645
 
            raise TestSkipped("No symlink support")
 
650
        self.requireFeature(SymlinkFeature)
646
651
        self.tree1 = self.make_branch_and_tree('b1')
647
652
        self.b1 = self.tree1.branch
648
653
        tt = TreeTransform(self.tree1)