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