~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/__init__.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:
488
488
        """
489
489
        # XXX: It's OK to just create them using forward slashes on windows?
490
490
        for name in shape:
491
 
            assert isinstance(name, basestring)
 
491
            self.assert_(isinstance(name, basestring))
492
492
            if name[-1] == '/':
493
493
                os.mkdir(name[:-1])
494
494
            else:
515
515
        logging.info('an info message')
516
516
        warning('something looks dodgy...')
517
517
        logging.debug('hello, test is running')
518
 
        ## assert 0
519
518
 
520
519
 
521
520
def filter_suite_by_re(suite, pattern):