Commit dd84c259 authored by Denis Bilenko's avatar Denis Bilenko

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

parent e9638d1b
......@@ -517,13 +517,15 @@ class HttpsTestCase(TestCase):
class TestHttps(HttpsTestCase):
def test_012_ssl_server(self):
result = self.urlopen(method="POST", data='abc').read()
self.assertEquals(result, 'abc')
if hasattr(socket, 'ssl'):
def test_013_empty_return(self):
result = self.urlopen().read()
self.assertEquals(result, '')
def test_012_ssl_server(self):
result = self.urlopen(method="POST", data='abc').read()
self.assertEquals(result, 'abc')
def test_013_empty_return(self):
result = self.urlopen().read()
self.assertEquals(result, '')
class TestInternational(TestCase):
......
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