Commit 517a18bb authored by Hanno Schlichting's avatar Hanno Schlichting

Work around strange test isolation issue

parent d2b68599
......@@ -211,10 +211,10 @@ class DebugManager(Item, Implicit):
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()
......
......@@ -229,9 +229,8 @@ class DebugManagerTests(unittest.TestCase):
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'])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment