summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-10-23 16:05:35 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-10-23 16:05:35 +0300
commit1bece759a3615b97c0a78e204eff23d13bba052d (patch)
tree2521299fe699cb6a07db90753b5998438d274ee7 /test
parentad518ae6c491308351eaa0d4065c09870d56f9ae (diff)
downloadunit-1bece759a3615b97c0a78e204eff23d13bba052d.tar.gz
unit-1bece759a3615b97c0a78e204eff23d13bba052d.tar.bz2
Tests: added flush() in "errors_write" Python application.
Diffstat (limited to 'test')
-rw-r--r--test/python/errors_write/wsgi.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/python/errors_write/wsgi.py b/test/python/errors_write/wsgi.py
index b1a9d2ee..148bce9e 100644
--- a/test/python/errors_write/wsgi.py
+++ b/test/python/errors_write/wsgi.py
@@ -1,5 +1,6 @@
def application(environ, start_response):
environ['wsgi.errors'].write('Error in application.')
+ environ['wsgi.errors'].flush()
start_response('200', [('Content-Length', '0')])
return []