X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=test%2Ftest_http.py;h=5076ced510847b83b2ac7a5374b92ef248ba8ec8;hb=54fb1996812fa09f0f81ac28f42647e7706212b2;hp=6b8493e5e6b9522ebe594872067f41d8eb365fc2;hpb=8c32e5dc32f401ae22fa7087f3f3b1c9d6563835;p=youtube-dl diff --git a/test/test_http.py b/test/test_http.py index 6b8493e5e..5076ced51 100644 --- a/test/test_http.py +++ b/test/test_http.py @@ -17,7 +17,7 @@ TEST_DIR = os.path.dirname(os.path.abspath(__file__)) def http_server_port(httpd): - if os.name == 'java': + if os.name == 'java' and isinstance(httpd.socket, ssl.SSLSocket): # In Jython SSLSocket is not a subclass of socket.socket sock = httpd.socket.sock else: