1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-05 18:52:48 +01:00

[test/test_http] Fix getsockname() on Jython

This commit is contained in:
Yen Chi Hsuan 2016-05-29 19:24:28 +08:00
parent 8c32e5dc32
commit 54fb199681

View File

@ -17,7 +17,7 @@
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: