libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [7/9] libcloud git commit: Also patch socket.socket.
Date Thu, 14 Jan 2016 20:15:34 GMT
Also patch socket.socket.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/5c2517ee
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/5c2517ee
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/5c2517ee

Branch: refs/heads/trunk
Commit: 5c2517eefbc27ee805bb5be29dd0baf2233ff549
Parents: 46f850b
Author: Tomaz Muraus <tomaz@apache.org>
Authored: Thu Jan 14 19:35:15 2016 +0100
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Thu Jan 14 19:35:15 2016 +0100

----------------------------------------------------------------------
 libcloud/test/test_httplib_ssl.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/5c2517ee/libcloud/test/test_httplib_ssl.py
----------------------------------------------------------------------
diff --git a/libcloud/test/test_httplib_ssl.py b/libcloud/test/test_httplib_ssl.py
index 25f6450..6459cd7 100644
--- a/libcloud/test/test_httplib_ssl.py
+++ b/libcloud/test/test_httplib_ssl.py
@@ -108,6 +108,7 @@ class TestHttpLibSSLTests(unittest.TestCase):
                                 self.httplib_object._setup_ca_cert)
 
     @mock.patch('socket.create_connection', mock.MagicMock())
+    @mock.patch('socket.socket', mock.MagicMock())
     @mock.patch('ssl.wrap_socket')
     def test_connect_throws_friendly_error_message_on_ssl_wrap_connection_reset_by_peer(self,
mock_wrap_socket):
         # Test that we re-throw a more friendly error message in case


Mime
View raw message