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

Changeset 1228

Show
Ignore:
Timestamp:
08/08/06 01:30:35
Author:
fumanchu
Message:

Removed dependency on pyconquer inside test_states.

Files:

Legend:

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

    r1219 r1228  
    233233        cherrypy.engine.on_stop_thread_list.append(db_connection.stopthread) 
    234234         
    235         import pyconquer 
    236         tr = pyconquer.Logger("cherrypy") 
    237         tr.out = open(os.path.join(os.path.dirname(__file__), "state.log"), "wb") 
    238235        try: 
    239             tr.start() 
     236            import pyconquer 
     237        except ImportError: 
    240238            helper.CPTestRunner.run(suite) 
    241         finally: 
    242             tr.stop() 
    243             tr.out.close() 
     239        else: 
     240            tr = pyconquer.Logger("cherrypy") 
     241            tr.out = open(os.path.join(os.path.dirname(__file__), "state.log"), "wb") 
     242            try: 
     243                tr.start() 
     244                helper.CPTestRunner.run(suite) 
     245            finally: 
     246                tr.stop() 
     247                tr.out.close() 
    244248    finally: 
    245249        cherrypy.server.stop() 

Hosted by WebFaction

Log in as guest/cpguest to create tickets