From 1b9d883a74c06ef41e0c34f2e8f4e99296655ea4 Mon Sep 17 00:00:00 2001 From: sulyi Date: Mon, 4 Jun 2018 06:32:41 +0200 Subject: [PATCH] [jsinterp] Faking `Logger.getChild` for py2.6 --- test/test_jsinterp.py | 2 +- test/test_jsinterp2.py | 2 +- test/test_jsinterp2_parse.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_jsinterp.py b/test/test_jsinterp.py index f35a18ec9..4135309b4 100644 --- a/test/test_jsinterp.py +++ b/test/test_jsinterp.py @@ -92,7 +92,7 @@ for testcase in defs: log_reason = None if log_reason is None: - test_method = generator(testcase, log.getChild(tname)) + test_method = generator(testcase, logging.getLogger('.'.join((log.name, tname)))) test_method.__name__ = str(tname) if reason is not False: test_method.__unittest_skip__ = True diff --git a/test/test_jsinterp2.py b/test/test_jsinterp2.py index 08e5bd3d2..916f8b01e 100644 --- a/test/test_jsinterp2.py +++ b/test/test_jsinterp2.py @@ -88,7 +88,7 @@ for testcase in defs: log_reason = None if log_reason is None: - test_method = generator(testcase, log.getChild(tname)) + test_method = generator(testcase, logging.getLogger('.'.join((log.name, tname)))) test_method.__name__ = str(tname) if reason is not False: test_method.__unittest_skip__ = True diff --git a/test/test_jsinterp2_parse.py b/test/test_jsinterp2_parse.py index 32b741f21..ff1d98d21 100644 --- a/test/test_jsinterp2_parse.py +++ b/test/test_jsinterp2_parse.py @@ -82,7 +82,7 @@ for testcase in defs: log_reason = None if log_reason is None: - test_method = generator(testcase, log.getChild(tname)) + test_method = generator(testcase, logging.getLogger('.'.join((log.name, tname)))) test_method.__name__ = str(tname) if reason is not False: test_method.__unittest_skip__ = True