diff options
-rw-r--r-- | paste/fixture.py | 2 | ||||
-rw-r--r-- | paste/wsgilib.py | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/paste/fixture.py b/paste/fixture.py index a44daf6..9a1d4d7 100644 --- a/paste/fixture.py +++ b/paste/fixture.py @@ -299,7 +299,7 @@ class TestApp(object): raise_on_wsgi_error = not req.expect_errors raw_res = wsgilib.raw_interactive( app, req.url, - raise_on_wsgi_error=raise_on_wsgi_error + raise_on_wsgi_error=raise_on_wsgi_error, **req.environ) end_time = time.time() finally: diff --git a/paste/wsgilib.py b/paste/wsgilib.py index a7932a3..bbe20fd 100644 --- a/paste/wsgilib.py +++ b/paste/wsgilib.py @@ -166,7 +166,7 @@ def raw_interactive(application, path='', raise_on_wsgi_error=False, Runs the application in a fake environment. """ assert "path_info" not in environ, "argument list changed" - if raise_on_wsgi_errors: + if raise_on_wsgi_error: errors = ErrorRaiser() else: errors = StringIO() @@ -258,6 +258,9 @@ class ErrorRaiser(object): raise AssertionError( "No errors should be written (got lines: %s)" % list(seq)) + def getvalue(self): + return '' + def interactive(*args, **kw): """ Runs the application interatively, wrapping `raw_interactive` but |