[Python-3000-checkins] r62082 - python/branches/py3k/Lib/test/test_ssl.py

neal.norwitz python-3000-checkins at python.org
Mon Mar 31 07:39:27 CEST 2008


Author: neal.norwitz
Date: Mon Mar 31 07:39:26 2008
New Revision: 62082

Modified:
   python/branches/py3k/Lib/test/test_ssl.py
Log:
This was required on OS X to prevent the test from deadlocking.  I'm not sure
if this is just a test problem or something deeper.  Hopefully the test will
stop hanging.


Modified: python/branches/py3k/Lib/test/test_ssl.py
==============================================================================
--- python/branches/py3k/Lib/test/test_ssl.py	(original)
+++ python/branches/py3k/Lib/test/test_ssl.py	Mon Mar 31 07:39:26 2008
@@ -417,6 +417,7 @@
                     except:
                         sys.stdout.write(''.join(traceback.format_exception(*sys.exc_info())))
                         break
+                    time.sleep(0.1)
 
             def server_close(self):
                 # Again, we want this to run in a thread, so we need to override
@@ -970,7 +971,11 @@
                     raise test_support.TestFailed(
                         "Couldn't fetch data from HTTPS server")
             finally:
+                if test_support.verbose:
+                    sys.stdout.write('stopping server\n')
                 server.stop()
+                if test_support.verbose:
+                    sys.stdout.write('joining thread\n')
                 server.join()
 
         def testAsyncoreServer(self):


More information about the Python-3000-checkins mailing list