summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-04-22 17:30:07 (GMT)
committerBrett Cannon <brett@python.org>2012-04-22 17:30:07 (GMT)
commit8c5e920ae3e98ebc5b37a105cf86e4c1e9649f57 (patch)
tree694f2b32232791ff1e55dcc35e11d3fd3dab726c /Lib
parent410e88d5fccd85cd2a5ad73c98a8552fa7a0a166 (diff)
parent4c3f47896ea8e38c97c3240f9f5de48e8d835120 (diff)
downloadcpython-8c5e920ae3e98ebc5b37a105cf86e4c1e9649f57.zip
cpython-8c5e920ae3e98ebc5b37a105cf86e4c1e9649f57.tar.gz
cpython-8c5e920ae3e98ebc5b37a105cf86e4c1e9649f57.tar.bz2
merge
Diffstat (limited to 'Lib')
-rw-r--r--Lib/logging/handlers.py2
-rw-r--r--Lib/test/test_logging.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py
index d0e1425..9c63797 100644
--- a/Lib/logging/handlers.py
+++ b/Lib/logging/handlers.py
@@ -872,7 +872,7 @@ class SMTPHandler(logging.Handler):
A handler class which sends an SMTP email for each logging event.
"""
def __init__(self, mailhost, fromaddr, toaddrs, subject,
- credentials=None, secure=None, timeout=1.0):
+ credentials=None, secure=None, timeout=5.0):
"""
Initialize the handler.
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index edcefa1..75b3e4d 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -930,7 +930,7 @@ class SMTPHandlerTest(BaseTest):
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'})