cpython: 8fe3022af4b3 (original) (raw)

Mercurial > cpython

changeset 87736:8fe3022af4b3

Added some diagnostics to help with #19690. [#19690]

Vinay Sajip <vinay_sajip@yahoo.co.uk>
date Tue, 03 Dec 2013 12:31:23 +0000
parents bfd45dc46569
children 97fb852c5c26
files Lib/test/test_logging.py
diffstat 1 files changed, 12 insertions(+), 1 deletions(-)[+] [-] Lib/test/test_logging.py 13

line wrap: on

line diff

--- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -590,6 +590,7 @@ class HandlerTest(BaseTest): for _ in range(tries): try: os.unlink(fname)

@@ -597,6 +598,9 @@ class HandlerTest(BaseTest): del_count = 500 log_count = 500

+ for delay in (False, True): fd, fn = tempfile.mkstemp('.log', 'test_logging-3-') os.close(fd) @@ -610,7 +614,14 @@ class HandlerTest(BaseTest): for _ in range(log_count): time.sleep(0.005) r = logging.makeLogRecord({'msg': 'testing' })