summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-06-17 21:18:07 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-06-17 21:18:07 (GMT)
commitd5a1a21a89aab37cb41ce58a5f5da3590c55df86 (patch)
treee7dca98adbc923029c50e577977a62df998a8166 /Lib/importlib
parent48114b952b22cf68ab7dccfb571a2194fd89e6ef (diff)
downloadcpython-d5a1a21a89aab37cb41ce58a5f5da3590c55df86.zip
cpython-d5a1a21a89aab37cb41ce58a5f5da3590c55df86.tar.gz
cpython-d5a1a21a89aab37cb41ce58a5f5da3590c55df86.tar.bz2
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.
Diffstat (limited to 'Lib/importlib')
-rw-r--r--Lib/importlib/test/test_locks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/test/test_locks.py b/Lib/importlib/test/test_locks.py
index 35a72d4..7faff49 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