From 331514fcf75dde719267efc970979524312d268e Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Wed, 24 Jan 2018 15:43:04 +0300 Subject: Tests: using "expectedFailure" decorator instead of assertTry(). --- test/test_python_atexit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test_python_atexit.py') 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') -- cgit