changeset: 76475:bdbcb8f48ddd user: Vinay Sajip date: Sun Apr 22 18:19:50 2012 +0100 files: Lib/test/test_logging.py description: Issue #14644: Increased default timeout for SMTPHandler. Note: last commit message referred to the wrong issue number. diff -r fe66fb61f199 -r bdbcb8f48ddd Lib/test/test_logging.py --- a/Lib/test/test_logging.py Sun Apr 22 18:16:14 2012 +0100 +++ b/Lib/test/test_logging.py Sun Apr 22 18:19:50 2012 +0100 @@ -930,7 +930,7 @@ sockmap) server.start() addr = ('localhost', server.port) - h = logging.handlers.SMTPHandler(addr, 'me', 'you', 'Log') + h = logging.handlers.SMTPHandler(addr, 'me', 'you', 'Log', timeout=5.0) self.assertEqual(h.toaddrs, ['you']) self.messages = [] r = logging.makeLogRecord({'msg': 'Hello'})

AltStyle によって変換されたページ (->オリジナル) /