]> granicus.if.org Git - python/commitdiff
Issue #14644: Increased default timeout for SMTPHandler. Note: last commit message...
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 22 Apr 2012 17:19:50 +0000 (18:19 +0100)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 22 Apr 2012 17:19:50 +0000 (18:19 +0100)
Lib/test/test_logging.py

index edcefa1406fc7ff6509def17e4e9939ab1411643..75b3e4d8142968f759e4348290a1c76c138014f5 100644 (file)
@@ -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'})