diff options
author | Philip Jenvey <pjenvey@underboss.org> | 2012-11-13 20:26:31 (GMT) |
---|---|---|
committer | Philip Jenvey <pjenvey@underboss.org> | 2012-11-13 20:26:31 (GMT) |
commit | 3acc7ef1c5f9eb7cc4a56672ac2ee028c5522b61 (patch) | |
tree | 9b99e226b571753b2bcf9942cf5e789d92052d54 /Lib/test/test_exceptions.py | |
parent | cc7715f8ae0931432031661ef8f88fcd606e158d (diff) | |
download | cpython-3acc7ef1c5f9eb7cc4a56672ac2ee028c5522b61.zip cpython-3acc7ef1c5f9eb7cc4a56672ac2ee028c5522b61.tar.gz cpython-3acc7ef1c5f9eb7cc4a56672ac2ee028c5522b61.tar.bz2 |
add gc_collects to weakref tests
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r-- | Lib/test/test_exceptions.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 7a2dd0c..3c14c80 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -493,6 +493,7 @@ class ExceptionTests(unittest.TestCase): e.__context__ = None obj = None obj = wr() + gc_collect() self.assertTrue(obj is None, "%s" % obj) # Some complicated construct @@ -509,6 +510,7 @@ class ExceptionTests(unittest.TestCase): except MyException: pass obj = None + gc_collect() obj = wr() self.assertTrue(obj is None, "%s" % obj) @@ -523,6 +525,7 @@ class ExceptionTests(unittest.TestCase): with Context(): inner_raising_func() obj = None + gc_collect() obj = wr() self.assertTrue(obj is None, "%s" % obj) |