R. David Murray added the comment:

It would be a white-box test, which I don't like, but it might be worth it to 
write a test that would check that <smtpobj>.sock is None, indicating that 
close was called.  You really can't check for no warning because when the 
warning gets generated is effectively asynchronous.

----------
nosy: +r.david.murray

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

Reply via email to