Pablo Galindo Salgado <[email protected]> added the comment:
The TypeError is because the test is misusing the assertRaises API:
self.assertRaises(smtplib.SMTPNotSupportedError,
smtp.send_message(msg))
should be
self.assertRaises(smtplib.SMTPNotSupportedError,
smtp.send_message, msg)
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue34246>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com