Make TestRequest an object

Wouldn't pass PythonTwoRegressions.test_new_style_classes without
this.
This commit is contained in:
Sajith Sasidharan 2020-06-11 20:50:03 -04:00
parent 048840ac99
commit c4be4b566c

View File

@ -36,7 +36,7 @@ class FakeClient(object):
# Also, the request needs to have `args` and `fields` properties so
# that `allmydata.web.common.get_arg()` won't complain.
@implementer(IRequest)
class TestRequest(Request):
class TestRequest(object, Request):
def __init__(self, args=None, fields=None):
Request.__init__(self, DummyChannel())
self.args = args or {}