Changeset 1489
- Timestamp:
- 12/09/06 13:41:00
- Files:
-
- branches/cherrypy-2.x/cherrypy/lib/httptools.py (modified) (1 diff)
- branches/cherrypy-2.x/cherrypy/test/test_core.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/cherrypy-2.x/cherrypy/lib/httptools.py
r1015 r1489 288 288 code = int(code) 289 289 except ValueError: 290 raise ValueError("Illegal response status from server (non-numeric).") 290 raise ValueError("Illegal response status from server " 291 "(%s is non-numeric)." % repr(code)) 291 292 292 293 if code < 100 or code > 599: 293 raise ValueError("Illegal response status from server (out of range).") 294 raise ValueError("Illegal response status from server " 295 "(%s is out of range)." % repr(code)) 294 296 295 297 if code not in responseCodes: branches/cherrypy-2.x/cherrypy/test/test_core.py
r1397 r1489 428 428 self.getPage("/status/illegal") 429 429 self.assertStatus(500) 430 msg = "Illegal response status from server ( out of range)."430 msg = "Illegal response status from server (781 is out of range)." 431 431 self.assertErrorPage(500, msg) 432 432 … … 437 437 self.getPage("/status/bad") 438 438 self.assertStatus(500) 439 msg = "Illegal response status from server ( non-numeric)."439 msg = "Illegal response status from server ('error' is non-numeric)." 440 440 self.assertErrorPage(500, msg) 441 441 … … 617 617 # No traceback should be present 618 618 self.getPage("/error/cause_err_in_finalize") 619 msg = "Illegal response status from server ( non-numeric)."619 msg = "Illegal response status from server ('ZOO' is non-numeric)." 620 620 self.assertErrorPage(500, msg, None) 621 621 finally:

