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

Changeset 1035

Show
Ignore:
Timestamp:
03/30/06 10:07:21
Author:
dowski
Message:

When individual tests were run with --help or -h as command line arguments a KeyboardInterrupt? exception was raised and the test would hang until another KeyboardInterrupt? was raised (i.e., by hitting Ctrl-C).

Files:

Legend:

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

    r1018 r1035  
    125125        conf = {} 
    126126    setConfig(conf) 
    127     cherrypy.server.start_with_callback(_test_main_thread, *args, **kwargs) 
     127    try: 
     128        cherrypy.server.start_with_callback(_test_main_thread, *args, **kwargs) 
     129    except KeyboardInterrupt: 
     130        cherrypy.server.stop() 
    128131 
    129132def _test_main_thread(): 

Hosted by WebFaction

Log in as guest/cpguest to create tickets