[pypy-commit] pypy stdlib-2.7.12: gc_collect here

pjenvey pypy.commits at gmail.com
Sun Oct 2 16:57:42 EDT 2016


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: stdlib-2.7.12
Changeset: r87528:cf46e241af85
Date: 2016-10-02 13:56 -0700
http://bitbucket.org/pypy/pypy/changeset/cf46e241af85/

Log:	gc_collect here

diff --git a/lib-python/2.7/test/test_exceptions.py b/lib-python/2.7/test/test_exceptions.py
--- a/lib-python/2.7/test/test_exceptions.py
+++ b/lib-python/2.7/test/test_exceptions.py
@@ -6,7 +6,7 @@
 import pickle, cPickle
 
 from test.test_support import (TESTFN, unlink, run_unittest, captured_stderr,
-                               check_warnings, cpython_only)
+                               check_warnings, cpython_only, gc_collect)
 from test.test_pep352 import ignore_deprecation_warnings
 
 class BrokenStrException(Exception):
@@ -671,6 +671,7 @@
             obj = test_class()
             with captured_stderr() as stderr:
                 del obj
+                gc_collect()
             report = stderr.getvalue()
             self.assertRegexpMatches(report, "Exception.* ignored")
             if test_class is BrokenRepr:


More information about the pypy-commit mailing list