Changeset 1581
- Timestamp:
- 12/28/06 17:50:55
- Files:
-
- trunk/cherrypy/test/benchmark.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/test/benchmark.py
r1564 r1581 32 32 33 33 import cherrypy 34 from cherrypy import _cp modpy34 from cherrypy import _cperror, _cpmodpy 35 35 from cherrypy.lib import http 36 36 … … 215 215 def run(self): 216 216 # 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 218 223 for attr, name, pattern in self.parse_patterns: 219 224 val = re.search(pattern, self.output, re.MULTILINE)

