Tests: using "expectedFailure" decorator instead of assertTry().

This commit is contained in:
Andrey Zelenkov
2018-01-24 15:43:04 +03:00
parent 771e9d3cc3
commit 331514fcf7
6 changed files with 359 additions and 311 deletions

View File

@@ -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')