[pypy-svn] pypy fast-forward: gc.collect() to close the active connections

amauryfa commits-noreply at bitbucket.org
Wed Jan 12 00:05:50 CET 2011

Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40607:2f3e82ac7912
Date: 2011-01-11 23:34 +0100

Log:	gc.collect() to close the active connections and let the tests
	finish before they time out

diff --git a/lib-python/modified-2.7.0/test/test_xmlrpc.py b/lib-python/modified-2.7.0/test/test_xmlrpc.py
--- a/lib-python/modified-2.7.0/test/test_xmlrpc.py
+++ b/lib-python/modified-2.7.0/test/test_xmlrpc.py
@@ -435,6 +435,7 @@
     def tearDown(self):
         # wait on the server thread to terminate
+        test_support.gc_collect() # to close the active connections
         # disable traceback reporting

More information about the Pypy-commit mailing list