]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merged revisions 57772-57777 via svnmerge from
authorThomas Wouters <thomas@python.org>
Thu, 30 Aug 2007 22:39:17 +0000 (22:39 +0000)
committerThomas Wouters <thomas@python.org>
Thu, 30 Aug 2007 22:39:17 +0000 (22:39 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r57776 | thomas.wouters | 2007-08-31 00:35:31 +0200 (Fri, 31 Aug 2007) | 4 lines

  One more fix to consider missing SSL support.
........

Lib/test/test_httplib.py

index bbcdd8b42147effa676c32cab39f0c4d43d5e2b0..632c2bc563f39ed823eecec0494f962b3f66eab2 100644 (file)
@@ -201,8 +201,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)