~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/treeshape.py

  • Committer: Robert Collins
  • Date: 2005-10-18 05:26:22 UTC
  • mto: This revision was merged to the branch mainline in revision 1463.
  • Revision ID: robertc@robertcollins.net-20051018052622-653d638c9e26fde4
fix broken tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
import stat
32
32
 
33
33
from bzrlib.trace import warning
34
 
from bzrlib.osutils import pathjoin
35
34
 
36
35
def build_tree_contents(template):
37
36
    """Reconstitute some files from a text description.
64
63
        yield (dirpath + '/', )
65
64
        filenames.sort()
66
65
        for fn in filenames:
67
 
            fullpath = pathjoin(dirpath, fn)
68
 
            self.assertFalse(fullpath[-1] in '@/')
 
66
            fullpath = os.path.join(dirpath, fn)
 
67
            assert fullpath[-1] not in '@/'
69
68
            info = os.lstat(fullpath)
70
69
            if stat.S_ISLNK(info.st_mode):
71
70
                yield (fullpath + '@', os.readlink(fullpath))