mirror of https://github.com/python/cpython.git
Fixed bug in test_logging.
This commit is contained in:
parent
707d1e6cea
commit
00bdbe1d97
|
@ -2356,7 +2356,7 @@ def test_disable(self):
|
||||||
def _test_log(self, method, level=None):
|
def _test_log(self, method, level=None):
|
||||||
called = []
|
called = []
|
||||||
patch(self, logging, 'basicConfig',
|
patch(self, logging, 'basicConfig',
|
||||||
lambda *a, **kw: called.append(a, kw))
|
lambda *a, **kw: called.append((a, kw)))
|
||||||
|
|
||||||
recording = RecordingHandler()
|
recording = RecordingHandler()
|
||||||
logging.root.addHandler(recording)
|
logging.root.addHandler(recording)
|
||||||
|
|
Loading…
Reference in New Issue