summaryrefslogtreecommitdiff
path: root/paste/wsgilib.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2006-03-03 23:09:51 +0000
committerianb <devnull@localhost>2006-03-03 23:09:51 +0000
commit9b3b9ecc916aeeb6240135de36b5f7ae0b36edf9 (patch)
treed5b8ad014088cfa11e5af0a9f475438034558282 /paste/wsgilib.py
parentfbbf1cb197ad6c1bebca6366cc6f9eb3b7ff12b3 (diff)
downloadpaste-9b3b9ecc916aeeb6240135de36b5f7ae0b36edf9.tar.gz
don't worry about writing empty strings to wsgi.errors in simulated request
Diffstat (limited to 'paste/wsgilib.py')
-rw-r--r--paste/wsgilib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/paste/wsgilib.py b/paste/wsgilib.py
index dc170e3..38086e8 100644
--- a/paste/wsgilib.py
+++ b/paste/wsgilib.py
@@ -252,6 +252,8 @@ class ErrorRaiser(object):
pass
def write(self, value):
+ if not value:
+ return
raise AssertionError(
"No errors should be written (got: %r)" % value)