Kaydet (Commit) 628e3bb8 authored tarafından Thomas Wouters's avatar Thomas Wouters

One more fix to consider missing SSL support.

üst a6900e8d
...@@ -199,8 +199,9 @@ class HTTPSTimeoutTest(TestCase): ...@@ -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)
......
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