Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6bd5202

Browse files
committed
#5713: One more test_smtplib timing fix.
1 parent 54bd49d commit 6bd5202

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_smtplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,8 +837,8 @@ def test_with_statement(self):
837837
def test_with_statement_QUIT_failure(self):
838838
with self.assertRaises(smtplib.SMTPResponseException) as error:
839839
with smtplib.SMTP(HOST, self.port) as smtp:
840-
self.serv._SMTPchannel.quit_response = '421 QUIT FAILED'
841840
smtp.noop()
841+
self.serv._SMTPchannel.quit_response = '421 QUIT FAILED'
842842
self.assertEqual(error.exception.smtp_code, 421)
843843
self.assertEqual(error.exception.smtp_error, b'QUIT FAILED')
844844

0 commit comments

Comments
 (0)