[tahoe-lafs-trac-stream] [Tahoe-LAFS] #3590: Error in integration tests (test_web.py test_status()): 'str' object has no attribute 'render'
Tahoe-LAFS
trac at tahoe-lafs.org
Fri Jan 15 16:29:03 UTC 2021
#3590: Error in integration tests (test_web.py test_status()): 'str' object has no
attribute 'render'
----------------------+----------------------------------
Reporter: itamarst | Owner: itamarst
Type: defect | Status: new
Priority: normal | Milestone: Support Python 3
Component: unknown | Version: n/a
Keywords: | Launchpad Bug:
----------------------+----------------------------------
If you run all of test_web.py integration tests, you get the following
traceback:
{{{
integration/test_web.py::test_status 2021-01-15T11:25:49-0500
[twisted.python.log#info] web: 127.0.0.1 POST
/uri?redirect_to_result=true&t=mkdir&format=sdmf 303 -
2021-01-15T11:25:49-0500 [twisted.python.log#info] web: 127.0.0.1 GET
/uri/[CENSORED] 200 49532021-01-15T11:25:49-0500 [twisted.python.log#info]
web: 127.0.0.1 POST /uri/[CENSORED] 302 1802021-01-15T11:25:49-0500
[allmydata.webish.TahoeLAFSRequest#critical]
Traceback (most recent call last):
File "/home/itamarst/Devel/tahoe-lafs/venv27/lib/python2.7/site-
packages/twisted/web/server.py", line 302, in render
body = resrc.render(self)
File "/home/itamarst/Devel/tahoe-lafs/venv27/lib/python2.7/site-
packages/twisted/web/util.py", line 138, in render
self.d.addCallback(self._cbChild, request).addErrback(
File "/home/itamarst/Devel/tahoe-lafs/venv27/lib/python2.7/site-
packages/twisted/internet/defer.py", line 322, in addCallback
callbackKeywords=kw)
File "/home/itamarst/Devel/tahoe-lafs/venv27/lib/python2.7/site-
packages/twisted/internet/defer.py", line 311, in addCallbacks
self._runCallbacks()
--- <exception caught here> ---
File "/home/itamarst/Devel/tahoe-lafs/venv27/lib/python2.7/site-
packages/twisted/internet/defer.py", line 654, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/home/itamarst/Devel/tahoe-lafs/venv27/lib/python2.7/site-
packages/twisted/web/util.py", line 144, in _cbChild
request.render(resource.getChildForRequest(child, request))
File "/home/itamarst/Devel/tahoe-lafs/venv27/lib/python2.7/site-
packages/twisted/web/server.py", line 302, in render
body = resrc.render(self)
exceptions.AttributeError: 'str' object has no attribute 'render'
}}}
There are two problems here:
1. The traceback.
2. The fact the traceback doesn't fail the integration test.
I am not certain this is due to Python 3 port, but it seems plausible, so
I am going to try to fix it.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3590>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list