~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_workingtree/test_symlinks.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-07-23 23:05:45 UTC
  • mfrom: (6039.1.3 bzr.dev)
  • Revision ID: pqm@pqm.ubuntu.com-20110723230545-ui2ebmcs0i6a9dqc
(jelmer) Fix some tests to cope with working trees that do not support
 versioned directories. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
        tree.lock_read()
102
102
        self.addCleanup(tree.unlock)
103
103
        self.assertEquals([], list(tree.iter_changes(tree.basis_tree())))
104
 
        self.assertEquals(
105
 
            ['a', 'a/f'], sorted(info[0] for info in tree.list_files()))
 
104
        if tree._format.supports_versioned_directories:
 
105
            self.assertEquals(
 
106
                ['a', 'a/f'], sorted(info[0] for info in tree.list_files()))
 
107
        else:
 
108
            self.assertEquals([], list(tree.list_files()))
106
109
 
107
110
    def test_dir_changes_to_symlink(self):
108
111
        # <https://bugs.launchpad.net/bzr/+bug/192859>: