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

Skip to content

Commit e0a1bf3

Browse files
committed
Merge: #5713: One more test_smtplib timing fix.
2 parents f72119d + 6bd5202 commit e0a1bf3

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
@@ -831,8 +831,8 @@ def test_with_statement(self):
831831
def test_with_statement_QUIT_failure(self):
832832
with self.assertRaises(smtplib.SMTPResponseException) as error:
833833
with smtplib.SMTP(HOST, self.port) as smtp:
834-
self.serv._SMTPchannel.quit_response = '421 QUIT FAILED'
835834
smtp.noop()
835+
self.serv._SMTPchannel.quit_response = '421 QUIT FAILED'
836836
self.assertEqual(error.exception.smtp_code, 421)
837837
self.assertEqual(error.exception.smtp_error, b'QUIT FAILED')
838838

0 commit comments

Comments
 (0)