From e5e6b7089502001819f90546a51487a0b98c38e6 Mon Sep 17 00:00:00 2001 From: jbergstroem Date: Wed, 3 Mar 2010 14:37:58 +0800 Subject: [PATCH] Fix failed tests due to lack of passing config to a Request --- tests/t.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/t.py b/tests/t.py index 41ebc2a6..f5ecbf86 100644 --- a/tests/t.py +++ b/tests/t.py @@ -12,6 +12,7 @@ dirname = os.path.dirname(__file__) from gunicorn.http.parser import Parser from gunicorn.http.request import Request +from gunicorn.config import Config def data_source(fname): with open(fname) as handle: @@ -73,7 +74,7 @@ class http_request(object): def __call__(self, func): def run(): fsock = FakeSocket(data_source(self.fname)) - req = Request(fsock, ('127.0.0.1', 6000), ('127.0.0.1', 8000)) + req = Request(fsock, ('127.0.0.1', 6000), ('127.0.0.1', 8000), Config({})) func(req) run.func_name = func.func_name return run