Kaydet (Commit) 000bd425 authored tarafından Philip Jenvey's avatar Philip Jenvey

merge 3.2

...@@ -551,6 +551,7 @@ class ExceptionTests(unittest.TestCase): ...@@ -551,6 +551,7 @@ class ExceptionTests(unittest.TestCase):
e.__context__ = None e.__context__ = None
obj = None obj = None
obj = wr() obj = wr()
gc_collect()
self.assertTrue(obj is None, "%s" % obj) self.assertTrue(obj is None, "%s" % obj)
# Some complicated construct # Some complicated construct
...@@ -567,6 +568,7 @@ class ExceptionTests(unittest.TestCase): ...@@ -567,6 +568,7 @@ class ExceptionTests(unittest.TestCase):
except MyException: except MyException:
pass pass
obj = None obj = None
gc_collect()
obj = wr() obj = wr()
self.assertTrue(obj is None, "%s" % obj) self.assertTrue(obj is None, "%s" % obj)
...@@ -581,6 +583,7 @@ class ExceptionTests(unittest.TestCase): ...@@ -581,6 +583,7 @@ class ExceptionTests(unittest.TestCase):
with Context(): with Context():
inner_raising_func() inner_raising_func()
obj = None obj = None
gc_collect()
obj = wr() obj = wr()
self.assertTrue(obj is None, "%s" % obj) self.assertTrue(obj is None, "%s" % obj)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment