mirror of https://github.com/python/cpython
merge 3.3
This commit is contained in:
commit
65a35dcadd
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue