~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_commit.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:
30
30
from bzrlib.config import BranchConfig
31
31
from bzrlib.errors import (PointlessCommit, BzrError, SigningFailed, 
32
32
                           LockContention)
33
 
from bzrlib.tests import TestCaseWithTransport
 
33
from bzrlib.tests import SymlinkFeature, TestCaseWithTransport
34
34
from bzrlib.workingtree import WorkingTree
35
35
 
36
36
 
584
584
            basis.unlock()
585
585
 
586
586
    def test_commit_kind_changes(self):
587
 
        if not osutils.has_symlinks():
588
 
            raise tests.TestSkipped('Test requires symlink support')
 
587
        self.requireFeature(SymlinkFeature)
589
588
        tree = self.make_branch_and_tree('.')
590
589
        os.symlink('target', 'name')
591
590
        tree.add('name', 'a-file-id')