summaryrefslogtreecommitdiff
path: root/Lib/test/test_ssl.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-03-31 05:39:26 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2008-03-31 05:39:26 +0000
commit928a180e9818d7ffdd99c39a0a1b5e4f0c582d4d (patch)
tree6899456a37a7b15754eb5f3828a39531c28eec04 /Lib/test/test_ssl.py
parent97da44f7be0b8b2132557fb738c55913bf2762bd (diff)
downloadcpython-928a180e9818d7ffdd99c39a0a1b5e4f0c582d4d.tar.gz
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.
Diffstat (limited to 'Lib/test/test_ssl.py')
-rw-r--r--Lib/test/test_ssl.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index 0bd43920d1..520f440d2a 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -417,6 +417,7 @@ else:
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 @@ else:
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):