summaryrefslogtreecommitdiffhomepage
path: root/test/python/atexit
diff options
context:
space:
mode:
Diffstat (limited to 'test/python/atexit')
-rw-r--r--test/python/atexit/wsgi.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/python/atexit/wsgi.py b/test/python/atexit/wsgi.py
index 9ad300b9..561d8049 100644
--- a/test/python/atexit/wsgi.py
+++ b/test/python/atexit/wsgi.py
@@ -1,12 +1,10 @@
import atexit
def application(environ, start_response):
- test_dir = environ.get('HTTP_TEST_DIR')
+ def at_exit():
+ environ['wsgi.errors'].write('At exit called.')
- def create_file():
- open(test_dir + '/atexit', 'w')
-
- atexit.register(create_file)
+ atexit.register(at_exit)
start_response('200', [('Content-Length', '0')])
return []