Issue #1167 new

[Python3.2] [CherryPy==3.2.2] TypeError in cherrypy/lib/httputil.py on line 252

Sviatoslav Sydorenko
created an issue

Versions: {{{

!bash

$ python3 -V Python 3.2.3

$ pip-3.2 freeze CherryPy==3.2.2 }}}

While trying to use cherrypy TypeError exception raises.

i.e. {{{

!bash

$ nosetests-3.2 -s ./ E ====================================================================== ERROR: Failure: TypeError ('tuple' object is not callable)


Traceback (most recent call last): File "/usr/local/lib/python3.2/site-packages/nose/failure.py", line 37, in runTest raise self.exc_class(self.exc_val).with_traceback(self.tb) File "/usr/local/lib/python3.2/site-packages/nose/loader.py", line 390, in loadTestsFromName addr.filename, addr.module) File "/usr/local/lib/python3.2/site-packages/nose/importer.py", line 39, in importFromPath return self.importFromDir(dir_path, fqname) File "/usr/local/lib/python3.2/site-packages/nose/importer.py", line 86, in importFromDir mod = load_module(part_fqname, fh, filename, desc) File "/home/wk/cherrypy/cherrypy/init.py", line 74, in <module> from cherrypy import _cprequest File "/home/wk/cherrypy/cherrypy/_cprequest.py", line 172, in <module> class Request(object): File "/home/wk/cherrypy/cherrypy/_cprequest.py", line 396, in Request error_response = cherrypy.HTTPError(500).set_response File "/home/wk/cherrypy/cherrypy/_cperror.py", line 342, in init self.code, self.reason, defaultmsg = _httputil.valid_status(status) File "/home/wk/cherrypy/cherrypy/lib/httputil.py", line 252, in valid_status status = str(status) TypeError: 'tuple' object is not callable


Ran 1 test in 0.001s

FAILED (errors=1) }}}

Comments (0)

  1. Log in to comment