~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

Use -Wignore::ImportWarning rather than catching it,
 to restore py2.4 compatibility

Show diffs side-by-side

added added

removed removed

Lines of Context:
4341
4341
        try:
4342
4342
            self._module = __import__(self.module_name, {}, {}, [''])
4343
4343
            return True
4344
 
        except (ImportWarning, ImportError):
 
4344
        except ImportError:
4345
4345
            return False
4346
4346
 
4347
4347
    @property