From a01a98ce36dd47c1be1df37470cac1656efac31e Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Mon, 2 Apr 2018 17:03:41 +0300 Subject: Tests: more Python tests. --- test/python/close/wsgi.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/python/close/wsgi.py (limited to 'test/python/close/wsgi.py') diff --git a/test/python/close/wsgi.py b/test/python/close/wsgi.py new file mode 100644 index 00000000..f80a34d7 --- /dev/null +++ b/test/python/close/wsgi.py @@ -0,0 +1,10 @@ +class application: + def __init__(self, environ, start_response): + self.environ = environ + self.start = start_response + + def __iter__(self): + self.start('200', [(('Content-Length', '0'))]) + + def close(self): + self.environ['wsgi.errors'].write('Close called.') -- cgit