Clean up tmp file in more cases

Previously, if the test failed, we would not remove the file.

Change-Id: Icaa3f2894feab48279073ddb19e8586f0528763b
This commit is contained in:
Tim Burke 2019-11-09 02:02:41 +00:00
parent a4087219c7
commit 2e5823f007

@ -118,11 +118,13 @@ class TestIdentityStorlet(StorletJavaFunctionalTest):
@contextmanager
def _filecontext(self, path):
yield
try:
os.remove(path)
except Exception:
pass
yield
finally:
try:
os.remove(path)
except Exception:
pass
@attr('slow')
def test_put_10MB_file(self):