[Jython-checkins] jython: Modify test_support.bind_port to do a gc for Jython version to hopefully fix

darjus.loktevic jython-checkins at python.org
Fri Mar 18 22:25:30 EDT 2016


https://hg.python.org/jython/rev/87534ec6252a
changeset:   7918:87534ec6252a
user:        Darjus Loktevic <darjus at gmail.com>
date:        Sat Mar 19 13:25:23 2016 +1100
summary:
  Modify test_support.bind_port to do a gc for Jython version to hopefully fix the test_timeout port issues for our CI systems

files:
  Lib/test/test_support.py |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -396,6 +396,7 @@
         port = tempsock.getsockname()[1]
         tempsock.close()
         del tempsock
+        gc_collect()
         sock.bind((host, port))
         return port
 

-- 
Repository URL: https://hg.python.org/jython


More information about the Jython-checkins mailing list