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.
1 parent 54bd49d commit 6bd5202Copy full SHA for 6bd5202
1 file changed
Lib/test/test_smtplib.py
@@ -837,8 +837,8 @@ def test_with_statement(self):
837
def test_with_statement_QUIT_failure(self):
838
with self.assertRaises(smtplib.SMTPResponseException) as error:
839
with smtplib.SMTP(HOST, self.port) as smtp:
840
- self.serv._SMTPchannel.quit_response = '421 QUIT FAILED'
841
smtp.noop()
+ self.serv._SMTPchannel.quit_response = '421 QUIT FAILED'
842
self.assertEqual(error.exception.smtp_code, 421)
843
self.assertEqual(error.exception.smtp_error, b'QUIT FAILED')
844
0 commit comments