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

Changeset 1499

Show
Ignore:
Timestamp:
12/09/06 17:28:45
Author:
fumanchu
Message:

2.x backport of [1153] (New "teardown_server" magic method support for test modules.)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/cherrypy-2.x/cherrypy/test/helper.py

    r1035 r1499  
    116116        if setup: 
    117117            setup() 
     118         
    118119        suite = CPTestLoader.loadTestsFromName(testmod) 
    119120        CPTestRunner.run(suite) 
     121         
     122        teardown = getattr(m, "teardown_server", None) 
     123        if teardown: 
     124            teardown() 
     125         
    120126    thread.interrupt_main() 
    121127 

Hosted by WebFaction

Log in as guest/cpguest to create tickets