diff options
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r-- | Lib/test/test_logging.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 6099562..ecf0e68 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -70,8 +70,7 @@ class LogRecordStreamHandler(StreamRequestHandler): while len(chunk) < slen: chunk = chunk + self.connection.recv(slen - len(chunk)) obj = self.unPickle(chunk) - record = logging.LogRecord(None, None, "", 0, "", (), None) - record.__dict__.update(obj) + record = logging.makeLogRecord(obj) self.handleLogRecord(record) except: raise |