diff options
author | Thomas Wouters <thomas@python.org> | 2007-08-30 22:35:31 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2007-08-30 22:35:31 (GMT) |
commit | 628e3bb808db629a095646d0b174989a008013f3 (patch) | |
tree | 2d00bb6b5e1586f520adfd46f30a732332132157 | |
parent | a6900e8d720df0fbbe0da5d26e61bf187f1fa74a (diff) | |
download | cpython-628e3bb808db629a095646d0b174989a008013f3.zip cpython-628e3bb808db629a095646d0b174989a008013f3.tar.gz cpython-628e3bb808db629a095646d0b174989a008013f3.tar.bz2 |
One more fix to consider missing SSL support.
-rw-r--r-- | Lib/test/test_httplib.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py index 9238eea..36d6f7d 100644 --- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py @@ -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) |