From 6bd5202227f228292a94bbed21bbcbf3eb73d1b1 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Thu, 21 Mar 2013 00:32:31 -0400 Subject: #5713: One more test_smtplib timing fix. --- Lib/test/test_smtplib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_smtplib.py b/Lib/test/test_smtplib.py index f538a9f..f93d355 100644 --- a/Lib/test/test_smtplib.py +++ b/Lib/test/test_smtplib.py @@ -837,8 +837,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') -- cgit v0.12