xref: /unit/test/python/close_error/wsgi.py (revision 603:a11b80dedc6b)
1class application:
2    def __init__(self, environ, start_response):
3        self.environ = environ
4        self.start = start_response
5
6    def __iter__(self):
7        self.start('200', [(('!', '0'))])
8
9    def close(self):
10        self.environ['wsgi.errors'].write('Close called.')
11