summaryrefslogtreecommitdiff
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2012-11-13 12:28:39 -0800
committerPhilip Jenvey <pjenvey@underboss.org>2012-11-13 12:28:39 -0800
commitf2e55250f145cbadb79238e0787232f77741ea4a (patch)
tree50cfa5e410b3c08beac9676ddb2d7e3015d038b7 /Lib/test/test_exceptions.py
parent8e5c39e40bc605eede665d171259e71a100f4864 (diff)
parent1daeb6278ca26f198238ea4f8046699db7209622 (diff)
downloadcpython-f2e55250f145cbadb79238e0787232f77741ea4a.tar.gz
merge 3.3
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 8e5a767f86..9696462201 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -551,6 +551,7 @@ class ExceptionTests(unittest.TestCase):
e.__context__ = None
obj = None
obj = wr()
+ gc_collect()
self.assertTrue(obj is None, "%s" % obj)
# Some complicated construct
@@ -567,6 +568,7 @@ class ExceptionTests(unittest.TestCase):
except MyException:
pass
obj = None
+ gc_collect()
obj = wr()
self.assertTrue(obj is None, "%s" % obj)
@@ -581,6 +583,7 @@ class ExceptionTests(unittest.TestCase):
with Context():
inner_raising_func()
obj = None
+ gc_collect()
obj = wr()
self.assertTrue(obj is None, "%s" % obj)