summaryrefslogtreecommitdiff
path: root/waitress/task.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-12-28 08:36:03 -0500
committerChris McDonough <chrism@plope.com>2011-12-28 08:36:03 -0500
commit013926dab4a9a42808732ef86d83617aadfbcff9 (patch)
tree25d35dd51faf969e13f854daabcfac48eefbf71b /waitress/task.py
parent76b30ea6c574d36c61e1c6e7c2a9fe6876690862 (diff)
downloadwaitress-013926dab4a9a42808732ef86d83617aadfbcff9.tar.gz
total coverage
Diffstat (limited to 'waitress/task.py')
-rw-r--r--waitress/task.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/waitress/task.py b/waitress/task.py
index 8cefce4..18fd080 100644
--- a/waitress/task.py
+++ b/waitress/task.py
@@ -336,18 +336,18 @@ class WSGITask(Task):
self.complete = True
if not status.__class__ is str:
- raise ValueError('status %s is not a string' % status)
+ raise AssertionError('status %s is not a string' % status)
self.status = status
# Prepare the headers for output
for k, v in headers:
if not k.__class__ is str:
- raise ValueError(
+ raise AssertionError(
'Header name %r is not a string in %s' % (k, (k, v))
)
- if not k.__class__ is str:
- raise ValueError(
+ if not v.__class__ is str:
+ raise AssertionError(
'Header value %r is not a string in %s' % (v, (k, v))
)
if k in ('content-length', 'Content-Length', 'Content-length',