mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
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:
parent
48114b952b
commit
d5a1a21a89
2 changed files with 16 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue