mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
#5713: One more test_smtplib timing fix.
This commit is contained in:
parent
54bd49d49b
commit
6bd5202227
1 changed files with 1 additions and 1 deletions
|
@ -837,8 +837,8 @@ class SMTPSimTests(unittest.TestCase):
|
||||||
def test_with_statement_QUIT_failure(self):
|
def test_with_statement_QUIT_failure(self):
|
||||||
with self.assertRaises(smtplib.SMTPResponseException) as error:
|
with self.assertRaises(smtplib.SMTPResponseException) as error:
|
||||||
with smtplib.SMTP(HOST, self.port) as smtp:
|
with smtplib.SMTP(HOST, self.port) as smtp:
|
||||||
self.serv._SMTPchannel.quit_response = '421 QUIT FAILED'
|
|
||||||
smtp.noop()
|
smtp.noop()
|
||||||
|
self.serv._SMTPchannel.quit_response = '421 QUIT FAILED'
|
||||||
self.assertEqual(error.exception.smtp_code, 421)
|
self.assertEqual(error.exception.smtp_code, 421)
|
||||||
self.assertEqual(error.exception.smtp_error, b'QUIT FAILED')
|
self.assertEqual(error.exception.smtp_error, b'QUIT FAILED')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue