mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
One more fix to consider missing SSL support.
This commit is contained in:
parent
a6900e8d72
commit
628e3bb808
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue