summaryrefslogtreecommitdiff
path: root/paste/fixture.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2006-02-28 20:25:58 +0000
committerianb <devnull@localhost>2006-02-28 20:25:58 +0000
commit7a97d609a29051be71db1e746b7ccb773f50addf (patch)
tree358233764796ecab5d3b0a74ce63e40d9b21e970 /paste/fixture.py
parentbeb6deb1dd0680a785699cbd89190b4d084bd74f (diff)
downloadpaste-7a97d609a29051be71db1e746b7ccb773f50addf.tar.gz
If we don't expect errors in wsgi.errors, raise an exception immediately when the error message is printed, instead of waiting until the end
Diffstat (limited to 'paste/fixture.py')
-rw-r--r--paste/fixture.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/paste/fixture.py b/paste/fixture.py
index 79c3d87..a44daf6 100644
--- a/paste/fixture.py
+++ b/paste/fixture.py
@@ -296,7 +296,11 @@ class TestApp(object):
try:
sys.stdout = out
start_time = time.time()
- raw_res = wsgilib.raw_interactive(app, req.url, **req.environ)
+ raise_on_wsgi_error = not req.expect_errors
+ raw_res = wsgilib.raw_interactive(
+ app, req.url,
+ raise_on_wsgi_error=raise_on_wsgi_error
+ **req.environ)
end_time = time.time()
finally:
sys.stdout = old_stdout