[Python-checkins] python/dist/src/Lib/test test_logging.py,1.8,1.9

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Fri, 27 Jun 2003 14:43:41 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv31078/Lib/test

Modified Files:
	test_logging.py 
Log Message:
SF patch #761519: Fixes for bugs 760703 and 757821
SF bug #760703: SocketHandler and LogRecord don't work well together
SF bug #757821: logging module docs

Applied Vinay Sajip's patch with a few minor fixups and a NEWS item.

Patched __init__.py - added new function 
makeLogRecord (for bug report 760703).

Patched handlers.py - updated some docstrings and 
deleted some old commented-out code.

Patched test_logging.py to make use of makeLogRecord.

Patched liblogging.tex to fill documentation gaps (both 
760703 and bug 757821).



Index: test_logging.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_logging.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** test_logging.py	30 Apr 2003 05:32:32 -0000	1.8
--- test_logging.py	27 Jun 2003 21:43:39 -0000	1.9
***************
*** 71,76 ****
                      chunk = chunk + self.connection.recv(slen - len(chunk))
                  obj = self.unPickle(chunk)
!                 record = logging.LogRecord(None, None, "", 0, "", (), None)
!                 record.__dict__.update(obj)
                  self.handleLogRecord(record)
              except:
--- 71,75 ----
                      chunk = chunk + self.connection.recv(slen - len(chunk))
                  obj = self.unPickle(chunk)
!                 record = logging.makeLogRecord(obj)
                  self.handleLogRecord(record)
              except: