[Python-checkins] cpython (merge 3.3 -> default): Merge: #5713: One more test_smtplib timing fix.
r.david.murray
python-checkins at python.org
Thu Mar 21 05:34:17 CET 2013
http://hg.python.org/cpython/rev/fcef6a33de17
changeset: 82866:fcef6a33de17
parent: 82864:792ffbf6295e
parent: 82865:d068fcbe5009
user: R David Murray <rdmurray at bitdance.com>
date: Thu Mar 21 00:33:30 2013 -0400
summary:
Merge: #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
@@ -831,8 +831,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