projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54bd49d
)
#5713: One more test_smtplib timing fix.
author
R David Murray
<rdmurray@bitdance.com>
Thu, 21 Mar 2013 04:32:31 +0000
(
00:32
-0400)
committer
R David Murray
<rdmurray@bitdance.com>
Thu, 21 Mar 2013 04:32:31 +0000
(
00:32
-0400)
Lib/test/test_smtplib.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_smtplib.py
b/Lib/test/test_smtplib.py
index f538a9f24c60fd21581c68b250fa42181fb18fd6..f93d355285da5e642a6c444cc6efed728ea6b5b9 100644
(file)
--- 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')