~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Martin Pool
  • Date: 2011-04-18 00:44:08 UTC
  • mfrom: (5609.33.4 2.3)
  • mto: This revision was merged to the branch mainline in revision 5796.
  • Revision ID: mbp@sourcefrog.net-20110418004408-ecxktkw0kmc6l4ha
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