Message219592
Hello!
I noticed that test_smtplib raises a ResourceWarning, tracking this to this piece of code:
self.assertRaises(smtplib.SMTPResponseException, smtplib.SMTP,
HOST, self.port, 'localhost', 3)
What happens is that `SMTP.getreply` is called in `SMTP.__init__` after the socket was opened, but if getreply raises SMTPResponseException, the socket remains opened. The attached patch fixes this. |
|
Date |
User |
Action |
Args |
2014-06-02 14:55:42 | Claudiu.Popa | set | recipients:
+ Claudiu.Popa |
2014-06-02 14:55:42 | Claudiu.Popa | set | messageid: <1401720942.39.0.48870811951.issue21641@psf.upfronthosting.co.za> |
2014-06-02 14:55:42 | Claudiu.Popa | link | issue21641 messages |
2014-06-02 14:55:42 | Claudiu.Popa | create | |
|