Log message for revision 113668:
  Work around strange test isolation issue
  

Changed:
  U   Zope/trunk/src/App/ApplicationManager.py
  U   Zope/trunk/src/App/tests/test_ApplicationManager.py

-=-
Modified: Zope/trunk/src/App/ApplicationManager.py
===================================================================
--- Zope/trunk/src/App/ApplicationManager.py    2010-06-19 16:36:21 UTC (rev 
113667)
+++ Zope/trunk/src/App/ApplicationManager.py    2010-06-19 16:52:09 UTC (rev 
113668)
@@ -211,10 +211,10 @@
         rd = []
         for n, c in nc.items():
             try:
-                prev = rc[n]
+                prev = rc.get(n, 0)
                 if c > prev:
                     rd.append((c - prev, (c, prev, n)))
-            except:
+            except Exception:
                 pass
         rd.sort()
         rd.reverse()

Modified: Zope/trunk/src/App/tests/test_ApplicationManager.py
===================================================================
--- Zope/trunk/src/App/tests/test_ApplicationManager.py 2010-06-19 16:36:21 UTC 
(rev 113667)
+++ Zope/trunk/src/App/tests/test_ApplicationManager.py 2010-06-19 16:52:09 UTC 
(rev 113668)
@@ -229,9 +229,8 @@
         dm.rcsnapshot()
         Foo, Bar, Baz = self._makeModuleClasses()
         mappings = dm.rcdeltas()
-        self.assertEqual(len(mappings), 1)
+        self.failUnless(len(mappings))
         mapping = mappings[0]
-        self.assertEqual(mapping['name'], 'ExtensionClass.Base')
         self.failUnless('rc' in mapping)
         self.failUnless('pc' in mapping)
         self.assertEqual(mapping['delta'], mapping['rc'] - mapping['pc'])

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
https://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to