Kaydet (Commit) e0a1bf31 authored tarafından R David Murray's avatar R David Murray

Merge: #5713: One more test_smtplib timing fix.

......@@ -831,8 +831,8 @@ class SMTPSimTests(unittest.TestCase):
def test_with_statement_QUIT_failure(self):
with self.assertRaises(smtplib.SMTPResponseException) as error:
with smtplib.SMTP(HOST, self.port) as smtp:
self.serv._SMTPchannel.quit_response = '421 QUIT FAILED'
smtp.noop()
self.serv._SMTPchannel.quit_response = '421 QUIT FAILED'
self.assertEqual(error.exception.smtp_code, 421)
self.assertEqual(error.exception.smtp_error, b'QUIT FAILED')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment