diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2019-10-23 16:05:35 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2019-10-23 16:05:35 +0300 |
commit | 1bece759a3615b97c0a78e204eff23d13bba052d (patch) | |
tree | 2521299fe699cb6a07db90753b5998438d274ee7 /test/python/errors_write/wsgi.py | |
parent | ad518ae6c491308351eaa0d4065c09870d56f9ae (diff) | |
download | unit-1bece759a3615b97c0a78e204eff23d13bba052d.tar.gz unit-1bece759a3615b97c0a78e204eff23d13bba052d.tar.bz2 |
Tests: added flush() in "errors_write" Python application.
Diffstat (limited to '')
-rw-r--r-- | test/python/errors_write/wsgi.py | 1 |
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 [] |