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):
|
||||
# simple test to check it's storing it
|
||||
h = httplib.HTTPSConnection(HOST, PORT, timeout=30)
|
||||
self.assertEqual(h.timeout, 30)
|
||||
if hasattr(httplib, 'HTTPSConnection'):
|
||||
h = httplib.HTTPSConnection(HOST, PORT, timeout=30)
|
||||
self.assertEqual(h.timeout, 30)
|
||||
|
||||
def test_main(verbose=None):
|
||||
test_support.run_unittest(HeaderTests, OfflineTest, BasicTest, TimeoutTest, HTTPSTimeoutTest)
|
||||
|
|
Loading…
Reference in New Issue