Rev 5128: (mbp) treat python2.6 ImportWarning as indicating the module's not in file:///home/pqm/archives/thelove/bzr/2.2/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Thu Apr 14 06:06:41 UTC 2011
At file:///home/pqm/archives/thelove/bzr/2.2/
------------------------------------------------------------
revno: 5128 [merge]
revision-id: pqm at pqm.ubuntu.com-20110414060631-89adz5q7wz570d1o
parent: pqm at pqm.ubuntu.com-20110308213708-4basut6njeaavwqv
parent: mbp at sourcefrog.net-20110414041254-0hi0tm41rbl53zx0
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: 2.2
timestamp: Thu 2011-04-14 06:06:31 +0000
message:
(mbp) treat python2.6 ImportWarning as indicating the module's not
available
modified:
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
=== modified file 'bzrlib/tests/__init__.py'
--- a/bzrlib/tests/__init__.py 2010-12-02 09:23:10 +0000
+++ b/bzrlib/tests/__init__.py 2011-04-14 04:12:54 +0000
@@ -4275,7 +4275,7 @@
try:
self._module = __import__(self.module_name, {}, {}, [''])
return True
- except ImportError:
+ except (ImportWarning, ImportError):
return False
@property
More information about the bazaar-commits
mailing list