Rev 5396: Have to handle when details is None in http://bazaar.launchpad.net/~jameinel/bzr/2.3-filter-tests

John Arbash Meinel john at arbash-meinel.com
Sat Sep 25 21:36:50 BST 2010


At http://bazaar.launchpad.net/~jameinel/bzr/2.3-filter-tests

------------------------------------------------------------
revno: 5396
revision-id: john at arbash-meinel.com-20100925203633-y0ipdyceuupti08w
parent: john at arbash-meinel.com-20100925201807-yd64v28pa1d2i7o1
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.3-filter-tests
timestamp: Sat 2010-09-25 15:36:33 -0500
message:
  Have to handle when details is None
-------------- next part --------------
=== modified file 'bzrlib/tests/__init__.py'
--- a/bzrlib/tests/__init__.py	2010-09-25 20:08:01 +0000
+++ b/bzrlib/tests/__init__.py	2010-09-25 20:36:33 +0000
@@ -4508,7 +4508,7 @@
         def addSuccess(self, test, details=None):
             # The subunit client always includes the details in the subunit
             # stream, but we don't want to include it in ours.
-            if 'log' in details:
+            if details is not None and 'log' in details:
                 del details['log']
             return super(SubUnitBzrProtocolClient, self).addSuccess(
                 test, details)



More information about the bazaar-commits mailing list