[Checkins] SVN: zc.ngi/branches/jim-thready/src/zc/ngi/tests.py Clean up socket map at start of test to avoid running out of
Jim Fulton
jim at zope.com
Sat Oct 3 15:36:22 EDT 2009
Log message for revision 104764:
Clean up socket map at start of test to avoid running out of
descriptors when running the tests repeatedly.
Changed:
U zc.ngi/branches/jim-thready/src/zc/ngi/tests.py
-=-
Modified: zc.ngi/branches/jim-thready/src/zc/ngi/tests.py
===================================================================
--- zc.ngi/branches/jim-thready/src/zc/ngi/tests.py 2009-10-03 14:47:09 UTC (rev 104763)
+++ zc.ngi/branches/jim-thready/src/zc/ngi/tests.py 2009-10-03 19:36:21 UTC (rev 104764)
@@ -15,7 +15,9 @@
$Id$
"""
-import threading, unittest
+import unittest
+import sys
+import threading
from zope.testing import doctest
import zc.ngi.testing
import zc.ngi.async
@@ -151,6 +153,9 @@
#import logging
#logging.getLogger().addHandler(logging.StreamHandler())
+ # clean up the map.
+ zc.ngi.async.cleanup_map()
+
# See if we can break the main loop before running the async test
# Connect to bad port with bad handler
More information about the checkins
mailing list