diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-01-24 15:43:04 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-01-24 15:43:04 +0300 |
commit | 331514fcf75dde719267efc970979524312d268e (patch) | |
tree | 6a283e37438734661d4afad0e08e95ad6cb1b1f9 /test/test_python_atexit.py | |
parent | 771e9d3cc3a59585a3d8a6ae2baddb18f335c3dd (diff) | |
download | unit-331514fcf75dde719267efc970979524312d268e.tar.gz unit-331514fcf75dde719267efc970979524312d268e.tar.bz2 |
Tests: using "expectedFailure" decorator instead of assertTry().
Diffstat (limited to '')
-rw-r--r-- | test/test_python_atexit.py | 4 |
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') |