Commit 652b37b0 authored by Denis Bilenko's avatar Denis Bilenko

monkey: do not patch socket.create_connection

- if we patch socket and getaddrinfo, create_connection becomes green too
- its interface is different from version to version
parent 344e53ea
......@@ -144,6 +144,8 @@ def patch_socket(dns=True, aggressive=True):
items = socket.__implements__[:]
for function in dns_functions:
items.remove(function)
# if we patch socket.socket then create_connection is already good
items.remove('create_connection')
patch_module('socket', items=items)
if aggressive:
if 'ssl' not in socket.__implements__:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment