mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-26 08:01:06 +00:00
Make TestRequest an object
Wouldn't pass PythonTwoRegressions.test_new_style_classes without this.
This commit is contained in:
parent
048840ac99
commit
c4be4b566c
@ -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 {}
|
||||
|
Loading…
Reference in New Issue
Block a user