]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Disable SSL test on versions of libcurl with blocking SSL handshakes.
authorBen Darnell <ben@bendarnell.com>
Wed, 8 Sep 2010 00:02:50 +0000 (17:02 -0700)
committerBen Darnell <ben@bendarnell.com>
Wed, 8 Sep 2010 00:02:50 +0000 (17:02 -0700)
(using gnutls instead of openssl and libcurl < 7.21.0).

tornado/test/httpserver_test.py

index c3b5f4592ab45ed312d70f931997970b850104e5..3d6de203f23984b767a29f5c915ae9b6745f7631 100644 (file)
@@ -39,6 +39,13 @@ class SSLTest(AsyncHTTPTestCase, LogTrapTestCase):
         response = self.wait()
         self.assertEqual(response.body, "Hello world")
 
-if ssl is None:
-    # Don't try to run ssl tests if we don't have the ssl module
+if (ssl is None or
+    (pycurl.version_info()[5].startswith('GnuTLS') and
+     pycurl.version_info()[2] < 0x71400)):
+    # Don't try to run ssl tests if we don't have the ssl module (python 2.5).
+    # Additionally, when libcurl (< 7.21.0) is compiled against gnutls
+    # instead of openssl (which is the default on at least some versions of
+    # ubuntu), libcurl does the ssl handshake in blocking mode.  That will
+    # cause this test to deadlock as the blocking network ops happen in
+    # the same IOLoop as the server.
     del SSLTest