[issue30394] smtplib leaves open sockets around if SMTPConnectError is raised in __init__
Joel Hillacre
report at bugs.python.org
Sun May 21 16:41:09 EDT 2017
Joel Hillacre added the comment:
> Joel, our patch system has moved to GitHub. Mind to turn your patch into a PR?
I have opened a PR now.
I took a look at changing my example into a test. I am not sure how to test for a lack of warning. Closest test I found was BadHELOServerTests in test_smtplib.py, but using mock_socket would not cause the warning from socket.py.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30394>
_______________________________________
More information about the Python-bugs-list
mailing list