mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-27 00:21:07 +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
|
# Also, the request needs to have `args` and `fields` properties so
|
||||||
# that `allmydata.web.common.get_arg()` won't complain.
|
# that `allmydata.web.common.get_arg()` won't complain.
|
||||||
@implementer(IRequest)
|
@implementer(IRequest)
|
||||||
class TestRequest(Request):
|
class TestRequest(object, Request):
|
||||||
def __init__(self, args=None, fields=None):
|
def __init__(self, args=None, fields=None):
|
||||||
Request.__init__(self, DummyChannel())
|
Request.__init__(self, DummyChannel())
|
||||||
self.args = args or {}
|
self.args = args or {}
|
||||||
|
Loading…
Reference in New Issue
Block a user