~ubuntu-branches/ubuntu/maverick/bzr/maverick-proposed

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2010-02-17 17:47:40 UTC
  • mfrom: (1.4.5 upstream) (9.2.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20100217174740-35yh6t5rjnztg9z6
Tags: 2.1.0-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
"""Test that we can use smart_add on all Tree implementations."""
18
18
 
19
19
from cStringIO import StringIO
 
20
import sys
20
21
 
21
22
from bzrlib import (
22
23
    add,
53
54
 
54
55
    def assertFilenameSkipped(self, filename):
55
56
        tree = self.make_branch_and_tree('tree')
56
 
        self.build_tree(['tree/'+filename])
 
57
        try:
 
58
            self.build_tree(['tree/'+filename])
 
59
        except errors.NoSuchFile:
 
60
            if sys.platform == 'win32':
 
61
                raise tests.TestNotApplicable('Cannot create files named %r on'
 
62
                    ' win32' % (filename,))
57
63
        tree.smart_add(['tree'])
58
64
        self.assertEqual(None, tree.path2id(filename))
59
65