Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f72119d + 6bd5202 commit e0a1bf3Copy full SHA for e0a1bf3
1 file changed
Lib/test/test_smtplib.py
@@ -831,8 +831,8 @@ def test_with_statement(self):
831
def test_with_statement_QUIT_failure(self):
832
with self.assertRaises(smtplib.SMTPResponseException) as error:
833
with smtplib.SMTP(HOST, self.port) as smtp:
834
- self.serv._SMTPchannel.quit_response = '421 QUIT FAILED'
835
smtp.noop()
+ self.serv._SMTPchannel.quit_response = '421 QUIT FAILED'
836
self.assertEqual(error.exception.smtp_code, 421)
837
self.assertEqual(error.exception.smtp_error, b'QUIT FAILED')
838
0 commit comments