Commit dd84c259 authored by Denis Bilenko's avatar Denis Bilenko

test__pywsgi.py: skip https tests when ssl is not available

parent e9638d1b
...@@ -517,6 +517,8 @@ class HttpsTestCase(TestCase): ...@@ -517,6 +517,8 @@ class HttpsTestCase(TestCase):
class TestHttps(HttpsTestCase): class TestHttps(HttpsTestCase):
if hasattr(socket, 'ssl'):
def test_012_ssl_server(self): def test_012_ssl_server(self):
result = self.urlopen(method="POST", data='abc').read() result = self.urlopen(method="POST", data='abc').read()
self.assertEquals(result, 'abc') self.assertEquals(result, 'abc')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment