commit: 54fb1996812fa09f0f81ac28f42647e7706212b2
parent 8c32e5dc32f401ae22fa7087f3f3b1c9d6563835
Author: Yen Chi Hsuan <yan12125@gmail.com>
Date: Sun, 29 May 2016 19:24:28 +0800
[test/test_http] Fix getsockname() on Jython
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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: