Prevent test_inspect from keeping alive a ton of frames and local variables by way of a global variable keeping a reference to a traceback.

Should fix some buildbot failures.
This commit is contained in:
Antoine Pitrou 2012-06-17 23:18:07 +02:00
parent 48114b952b
commit d5a1a21a89
2 changed files with 16 additions and 13 deletions

View file

@ -101,7 +101,7 @@ class LifetimeTests(unittest.TestCase):
def test_all_locks(self):
support.gc_collect()
self.assertEqual(0, len(_bootstrap._module_locks))
self.assertEqual(0, len(_bootstrap._module_locks), _bootstrap._module_locks)
@support.reap_threads