Browse Source

[test/test_http] Fix getsockname() on Jython

master
Yen Chi Hsuan 9 years ago
parent
commit
54fb199681
1 changed files with 1 additions and 1 deletions
  1. 2
      test/test_http.py

2
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:

Loading…
Cancel
Save