Don't leave stray file if test fails.
As assert aborts the code execution if the file exists, this test will result in the file not being deleted if it exists. This change makes sure the file is cleaned up if it exists, before the assert has a chance to abort.
Showing
Please
register
or
sign in
to comment