~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/tree_implementations/test_test_trees.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-03 02:37:39 UTC
  • mfrom: (2949.5.2 symlink.feature)
  • Revision ID: pqm@pqm.ubuntu.com-20071103023739-e0wzok4qpvzq66sa
selftest: use SymlinkFeature instead of TestSkipped where appropriate

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Tests for the test trees used by the tree_implementations tests."""
18
18
 
19
 
from bzrlib.osutils import has_symlinks
20
 
from bzrlib.tests import TestSkipped
 
19
from bzrlib.tests import SymlinkFeature
21
20
from bzrlib.tests.tree_implementations import TestCaseWithTree
22
21
 
23
22
 
148
147
        # currently this test tree requires unicode. It might be good
149
148
        # to have it simply stop having the single unicode file in it
150
149
        # when dealing with a non-unicode filesystem.
151
 
        if not has_symlinks():
152
 
            raise TestSkipped('No symlink support')
 
150
        self.requireFeature(SymlinkFeature)
153
151
        tree = self.get_tree_with_subdirs_and_all_content_types()
154
152
        tree.lock_read()
155
153
        self.addCleanup(tree.unlock)