A feature-rich command-line audio/video downloader
[test/test_http] Fix getsockname() on Jython
Yen Chi Hsuan54fb1996812f
diff --git a/test/test_http.py b/test/test_http.pyindex 6b8493e5e6..5076ced510 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.socketsock = httpd.socket.sockelse: