[Python-checkins] cpython (3.3): #5713: One more test_smtplib timing fix.
r.david.murray
python-checkins at python.org
Thu Mar 21 05:34:16 CET 2013
http://hg.python.org/cpython/rev/d068fcbe5009
changeset: 82865:d068fcbe5009
branch: 3.3
parent: 82859:c412ca9aa915
user: R David Murray <rdmurray at bitdance.com>
date: Thu Mar 21 00:32:31 2013 -0400
summary:
#5713: One more test_smtplib timing fix.
files:
Lib/test/test_smtplib.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_smtplib.py b/Lib/test/test_smtplib.py
--- a/Lib/test/test_smtplib.py
+++ b/Lib/test/test_smtplib.py
@@ -837,8 +837,8 @@
def test_with_statement_QUIT_failure(self):
with self.assertRaises(smtplib.SMTPResponseException) as error:
with smtplib.SMTP(HOST, self.port) as smtp:
+ smtp.noop()
self.serv._SMTPchannel.quit_response = '421 QUIT FAILED'
- smtp.noop()
self.assertEqual(error.exception.smtp_code, 421)
self.assertEqual(error.exception.smtp_error, b'QUIT FAILED')
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list