summaryrefslogtreecommitdiffhomepage
path: root/test/test_python_atexit.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2018-01-24 15:43:04 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2018-01-24 15:43:04 +0300
commit331514fcf75dde719267efc970979524312d268e (patch)
tree6a283e37438734661d4afad0e08e95ad6cb1b1f9 /test/test_python_atexit.py
parent771e9d3cc3a59585a3d8a6ae2baddb18f335c3dd (diff)
downloadunit-331514fcf75dde719267efc970979524312d268e.tar.gz
unit-331514fcf75dde719267efc970979524312d268e.tar.bz2
Tests: using "expectedFailure" decorator instead of assertTry().
Diffstat (limited to 'test/test_python_atexit.py')
-rw-r--r--test/test_python_atexit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_python_atexit.py b/test/test_python_atexit.py
index be45d113..82fa9a39 100644
--- a/test/test_python_atexit.py
+++ b/test/test_python_atexit.py
@@ -22,7 +22,7 @@ atexit.register(create_file)
def application(env, start_response):
start_response('200 OK', [('Content-Type','text/html')])
- return [b'body']
+ return []
""" % (self.testdir + '/atexit'), 'py_app'
@@ -55,7 +55,7 @@ def application(env, start_response):
}
""")
- time.sleep(0.2)
+ time.sleep(0.2) # wait for 'atexit' file
self.assertEqual(os.path.exists(self.testdir + '/atexit'), True,
'python atexit')