Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller:acdc:as_python3_module
python3-geventhttpclient.29613
remove_mock.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File remove_mock.patch of Package python3-geventhttpclient.29613
--- a/src/geventhttpclient/tests/test_ssl.py +++ b/src/geventhttpclient/tests/test_ssl.py @@ -1,5 +1,7 @@ -import mock -from mock import patch, Mock +try: + import unittest.mock as mock +except ImportError: + import mock import dpkt.ssl import six @@ -117,7 +119,7 @@ def _get_sni_sent_from_client(**addition ('127.0.0.1', server_port) ) with mock.patch( - 'gevent.socket.getaddrinfo', Mock(return_value=[mock_addrinfo]) + 'gevent.socket.getaddrinfo', mock.Mock(return_value=[mock_addrinfo]) ): server_host = 'some_foo'
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor