~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-18 02:32:25 UTC
  • mfrom: (5793.3.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20110418023225-u6xxkipegqztrv9e
Use -Wignore::ImportWarning rather than catching it,
 to restore py2.4 compatibility

Show diffs side-by-side

added added

removed removed

Lines of Context:
4365
4365
        try:
4366
4366
            self._module = __import__(self.module_name, {}, {}, [''])
4367
4367
            return True
4368
 
        except (ImportError, ImportWarning):
 
4368
        except ImportError:
4369
4369
            return False
4370
4370
 
4371
4371
    @property