~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/workingtree_implementations/test_walkdirs.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:
19
19
import os
20
20
 
21
21
from bzrlib import transform
22
 
from bzrlib.osutils import has_symlinks
23
 
from bzrlib.tests import TestSkipped
 
22
from bzrlib.tests import SymlinkFeature
24
23
from bzrlib.tests.workingtree_implementations import TestCaseWithWorkingTree
25
24
 
26
25
# tests to write:
139
138
 
140
139
    def test_walkdirs_type_changes(self):
141
140
        """Walkdir shows the actual kinds on disk and the recorded kinds."""
142
 
        if not has_symlinks():
143
 
            raise TestSkipped('No symlink support')
 
141
        self.requireFeature(SymlinkFeature)
144
142
        tree = self.make_branch_and_tree('.')
145
143
        paths = ['file1', 'file2', 'dir1/', 'dir2/']
146
144
        ids = ['file1', 'file2', 'dir1', 'dir2']