One more fix to consider missing SSL support.

This commit is contained in:
Thomas Wouters 2007-08-30 22:35:31 +00:00
parent a6900e8d72
commit 628e3bb808
1 changed files with 3 additions and 2 deletions

View File

@ -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)