[issue26612] test_ssl: use context manager (with) to fix ResourceWarning

Martin Panter report at bugs.python.org
Tue Mar 22 21:53:55 EDT 2016


Martin Panter added the comment:

Also remember that sockets don’t do context management in Python 2, so this would bring more incompatibilies when merging tests between the two branches.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26612>
_______________________________________


More information about the Python-bugs-list mailing list