Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r60488:75c14c291d34
Date: 2013-01-25 13:31 -0800
http://bitbucket.org/pypy/pypy/changeset/75c14c291d34/
Log: fix gc_collects
diff --git a/lib-python/3.2/test/test_exceptions.py
b/lib-python/3.2/test/test_exceptions.py
--- a/lib-python/3.2/test/test_exceptions.py
+++ b/lib-python/3.2/test/test_exceptions.py
@@ -497,8 +497,8 @@
# must clear the latter manually for our test to succeed.
e.__context__ = None
obj = None
+ gc_collect()
obj = wr()
- gc_collect()
self.assertTrue(obj is None, "%s" % obj)
# Some complicated construct
@@ -839,6 +839,7 @@
self.assertNotEqual(wr(), None)
else:
self.fail("MemoryError not raised")
+ gc_collect()
self.assertEqual(wr(), None)
def test_recursion_error_cleanup(self):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit