~ubuntu-branches/ubuntu/karmic/bzr/karmic-proposed

« back to all changes in this revision

Viewing changes to bzrlib/tests/treeshape.py

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2008-05-12 00:14:54 UTC
  • mfrom: (1.1.42 upstream)
  • Revision ID: james.westby@ubuntu.com-20080512001454-yjpajuiocykl48p9
Tags: 1.5~rc1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
        filenames.sort()
66
66
        for fn in filenames:
67
67
            fullpath = pathjoin(dirpath, fn)
68
 
            assert not (fullpath[-1] in '@/')
 
68
            if (fullpath[-1] in '@/'):
 
69
                raise AssertionError(fullpath)
69
70
            info = os.lstat(fullpath)
70
71
            if stat.S_ISLNK(info.st_mode):
71
72
                yield (fullpath + '@', os.readlink(fullpath))