Ignore:
Timestamp:
23/08/06 16:59:50 (13 years ago)
Author:
spascoe
Message:

Minor changes to the test cases.

Only *.testStartup now fail. For some reason the first 2 log messages are
getting swallowed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/trunk/test/test_embedded.py

    r1451 r1452  
    2525 
    2626def flushLogging(): 
    27     #!WARNING: uses internal logging attributes 
    28     for h in logging._handlerList[:]: 
    29         try: 
    30             h.flush() 
    31         except: 
    32             pass 
     27    logging.shutdown() 
    3328def resetLogging(): 
    3429    logging.root.handlers = [] 
    3530    logging.basicConfig(level=logging.DEBUG, filename='./bbftpd.log') 
    3631 
     32resetLogging() 
     33logging.debug('Reset the loggers') 
     34flushLogging() 
    3735resetLogging() 
    3836server.bbftpd.after_fork_hook = resetLogging 
     
    336334                          r'.*Authz: MSG_LIST_V2 .*/test/data/\*.*', 
    337335                          r'.*User TestCaseUser disconnected.*', 
    338                           r'.*: Receiving MSG_STAT.*'], lines) 
     336                          r'.*:Receiving MSG_STAT.*'], lines) 
    339337 
    340338 
Note: See TracChangeset for help on using the changeset viewer.