Use wsgi.errors to for errors

This commit is contained in:
Unrud
2018-08-16 07:59:56 +02:00
parent 54b9995e22
commit 24815255be
3 changed files with 111 additions and 42 deletions

View File

@@ -43,6 +43,7 @@ class BaseTest:
data = data.encode("utf-8")
args["wsgi.input"] = BytesIO(data)
args["CONTENT_LENGTH"] = str(len(data))
args["wsgi.errors"] = sys.stderr
self.application._answer = self.application(args, self.start_response)
return (