diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2023-02-21 15:35:38 +0000 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2023-02-21 15:35:38 +0000 |
commit | fcabbf09d85397e244f6486d6eca25e2366b61cd (patch) | |
tree | ff0e1f437c9620620ae66c780069c787f6b5f875 /test/python/unicode/wsgi.py | |
parent | 7f046c80b9439b100965b3ee3c82b71a3b3a5aee (diff) | |
download | unit-fcabbf09d85397e244f6486d6eca25e2366b61cd.tar.gz unit-fcabbf09d85397e244f6486d6eca25e2366b61cd.tar.bz2 |
Tests: added Python tests with encoding.
Diffstat (limited to '')
-rw-r--r-- | test/python/unicode/wsgi.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/python/unicode/wsgi.py b/test/python/unicode/wsgi.py new file mode 100644 index 00000000..40043af9 --- /dev/null +++ b/test/python/unicode/wsgi.py @@ -0,0 +1,8 @@ +def application(environ, start_response): + temp_dir = environ.get('HTTP_TEMP_DIR') + + with open(temp_dir + '/tempfile', 'w') as f: + f.write('\u26a0\ufe0f') + + start_response('200', [('Content-Length', '0')]) + return [] |