~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/treeshape.py

Remove all assert statements from test cases.

Tests should always be evaluated even when run with 'python -O', and so should
use TestCase.assert_ etc.

Show diffs side-by-side

added added

removed removed

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