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 | 1b7cf1f3d00adbbcd17890f1475c2c36f75c3f68 (patch) | |
tree | da580391bd41d32709ce991672f9b36db92114fe /test/python/unicode/wsgi.py | |
parent | 7d7b5a977c4e461976422c59f4594280b05dde0a (diff) | |
download | unit-1b7cf1f3d00adbbcd17890f1475c2c36f75c3f68.tar.gz unit-1b7cf1f3d00adbbcd17890f1475c2c36f75c3f68.tar.bz2 |
Tests: added Python tests with encoding.
Diffstat (limited to 'test/python/unicode/wsgi.py')
-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 [] |