Jason R. Coombs <jar...@jaraco.com> added the comment:

Erlend, inspired by your patches, I created 
https://github.com/python/cpython/pull/23661/commits/e9723003d49c722d57a69e5016b442d4d752fc6d,
 which uses a NullSocket instance instead of None, allowing the 
behavior-suppression to be encapsulated in a single place and swapped out by 
creation of a proper socket instance.

I do believe this approach addresses the issue. Are you still willing to put 
together a test case or more?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38780>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to