Merge "Clean up tmp file in more cases"
This commit is contained in:
commit
c3cb2c044d
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user