From d5a1a21a89aab37cb41ce58a5f5da3590c55df86 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sun, 17 Jun 2012 23:18:07 +0200 Subject: 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. --- Lib/importlib/test/test_locks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/importlib/test') diff --git a/Lib/importlib/test/test_locks.py b/Lib/importlib/test/test_locks.py index 35a72d4cadf..7faff490ae5 100644 --- a/Lib/importlib/test/test_locks.py +++ b/Lib/importlib/test/test_locks.py @@ -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 -- cgit v1.2.3