Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4c3f478

Browse files
committed
Issue #14644: Increased default timeout for SMTPHandler. Note: last commit message referred to the wrong issue number.
1 parent 26308da commit 4c3f478

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ def test_basic(self):
930930
sockmap)
931931
server.start()
932932
addr = ('localhost', server.port)
933-
h = logging.handlers.SMTPHandler(addr, 'me', 'you', 'Log')
933+
h = logging.handlers.SMTPHandler(addr, 'me', 'you', 'Log', timeout=5.0)
934934
self.assertEqual(h.toaddrs, ['you'])
935935
self.messages = []
936936
r = logging.makeLogRecord({'msg': 'Hello'})

0 commit comments

Comments
 (0)