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

Changeset 1581

Show
Ignore:
Timestamp:
12/28/06 17:50:55
Author:
fumanchu
Message:

Benchmark now prints traceback on error in read_process.

Files:

Legend:

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

    r1564 r1581  
    3232 
    3333import cherrypy 
    34 from cherrypy import _cpmodpy 
     34from cherrypy import _cperror, _cpmodpy 
    3535from cherrypy.lib import http 
    3636 
     
    215215    def run(self): 
    216216        # Parse output of ab, setting attributes on self 
    217         self.output = _cpmodpy.read_process(AB_PATH or "ab", self.args()) 
     217        try: 
     218            self.output = _cpmodpy.read_process(AB_PATH or "ab", self.args()) 
     219        except: 
     220            print _cperror.format_exc() 
     221            raise 
     222         
    218223        for attr, name, pattern in self.parse_patterns: 
    219224            val = re.search(pattern, self.output, re.MULTILINE) 

Hosted by WebFaction

Log in as guest/cpguest to create tickets