diff options
| author | Facundo Batista <facundobatista@gmail.com> | 2008-02-23 12:27:17 (GMT) |
|---|---|---|
| committer | Facundo Batista <facundobatista@gmail.com> | 2008-02-23 12:27:17 (GMT) |
| commit | 1660933d23ed99393c2ea9bbe0204318936e3bbc (patch) | |
| tree | 767766b54f607b0fed90e4c386f5578246af5d89 /Lib/test/test_smtplib.py | |
| parent | fc2d01032fa4eb2d5563c2619811d05567faf528 (diff) | |
| download | cpython-1660933d23ed99393c2ea9bbe0204318936e3bbc.zip cpython-1660933d23ed99393c2ea9bbe0204318936e3bbc.tar.gz cpython-1660933d23ed99393c2ea9bbe0204318936e3bbc.tar.bz2 | |
Issue 1776581. Minor corrections to smtplib, and two small tests.
Thanks Alan McIntyre.
Diffstat (limited to 'Lib/test/test_smtplib.py')
| -rw-r--r-- | Lib/test/test_smtplib.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_smtplib.py b/Lib/test/test_smtplib.py index e2b9b06..933523b 100644 --- a/Lib/test/test_smtplib.py +++ b/Lib/test/test_smtplib.py @@ -82,8 +82,9 @@ class GeneralTests(TestCase): # to reference the nonexistent 'sock' attribute of the SMTP object # causes an AttributeError) smtp = smtplib.SMTP() - self.assertRaises(AttributeError, smtp.ehlo) - self.assertRaises(AttributeError, smtp.send, 'test msg') + self.assertRaises(smtplib.SMTPServerDisconnected, smtp.ehlo) + self.assertRaises(smtplib.SMTPServerDisconnected, + smtp.send, 'test msg') def testLocalHostName(self): # check that supplied local_hostname is used |
