Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1628

Show
Ignore:
Timestamp:
03/05/07 15:52:31
Author:
fumanchu
Message:

Oops.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/test/test.py

    r1627 r1628  
    227227            import cherrypy 
    228228            from cherrypy.lib import covercp 
    229             cherrypy.engine.hooks['start_process'].insert(0, covercp.start) 
    230             cherrypy.engine.hooks['start_thread'].insert(0, covercp.start) 
     229            cherrypy.engine.subscribe('start', covercp.start) 
     230            cherrypy.engine.subscribe('start_thread', covercp.start) 
    231231        except ImportError: 
    232232            coverage = None 
     
    237237        import cherrypy 
    238238        from cherrypy.lib import covercp 
    239         while covercp.start in cherrypy.engine.hooks['start_process']: 
    240             cherrypy.engine.hooks['start_process'].remove(covercp.start) 
    241         while covercp.start in cherrypy.engine.hooks['start_thread']: 
    242             cherrypy.engine.hooks['start_thread'].remove(covercp.start) 
     239        cherrypy.engine.unsubscribe('start', covercp.start) 
     240        cherrypy.engine.unsubscribe('start_thread', covercp.start) 
    243241        if self.coverage: 
    244242            self.coverage.save() 

Hosted by WebFaction

Log in as guest/cpguest to create tickets