Changeset 1228
- Timestamp:
- 08/08/06 01:30:35
- Files:
-
- trunk/cherrypy/test/test_states.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/test/test_states.py
r1219 r1228 233 233 cherrypy.engine.on_stop_thread_list.append(db_connection.stopthread) 234 234 235 import pyconquer236 tr = pyconquer.Logger("cherrypy")237 tr.out = open(os.path.join(os.path.dirname(__file__), "state.log"), "wb")238 235 try: 239 tr.start() 236 import pyconquer 237 except ImportError: 240 238 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() 244 248 finally: 245 249 cherrypy.server.stop()

