One more fix to consider missing SSL support.
This commit is contained in:
parent
a6900e8d72
commit
628e3bb808
|
@ -199,8 +199,9 @@ class HTTPSTimeoutTest(TestCase):
|
||||||
|
|
||||||
def test_attributes(self):
|
def test_attributes(self):
|
||||||
# simple test to check it's storing it
|
# simple test to check it's storing it
|
||||||
h = httplib.HTTPSConnection(HOST, PORT, timeout=30)
|
if hasattr(httplib, 'HTTPSConnection'):
|
||||||
self.assertEqual(h.timeout, 30)
|
h = httplib.HTTPSConnection(HOST, PORT, timeout=30)
|
||||||
|
self.assertEqual(h.timeout, 30)
|
||||||
|
|
||||||
def test_main(verbose=None):
|
def test_main(verbose=None):
|
||||||
test_support.run_unittest(HeaderTests, OfflineTest, BasicTest, TimeoutTest, HTTPSTimeoutTest)
|
test_support.run_unittest(HeaderTests, OfflineTest, BasicTest, TimeoutTest, HTTPSTimeoutTest)
|
||||||
|
|
Loading…
Reference in New Issue