aboutsummaryrefslogtreecommitdiff
path: root/test/test_http.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_http.py')
-rw-r--r--test/test_http.py2
1 files changed, 1 insertions, 1 deletions
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: