fix test memory datastore teardown

master
Emmanuelle Vargas-Gonzalez 2018-11-29 11:48:14 -05:00
parent 1b0fa0129f
commit 6e9312efb7
2 changed files with 4 additions and 4 deletions

View File

@ -148,7 +148,7 @@ def fs_mem_store(request, mem_store):
def fin():
# teardown, executed regardless of exception
shutil.rmtree(os.path.dirname(filename))
shutil.rmtree(os.path.dirname(saved_location))
request.addfinalizer(fin)
return saved_location
@ -163,7 +163,7 @@ def fs_mem_store_no_name(request, mem_store):
def fin():
# teardown, executed regardless of exception
shutil.rmtree(os.path.dirname(filename))
shutil.rmtree(os.path.dirname(saved_location))
request.addfinalizer(fin)
return saved_location

View File

@ -156,7 +156,7 @@ def fs_mem_store(request, mem_store):
def fin():
# teardown, executed regardless of exception
shutil.rmtree(os.path.dirname(filename))
shutil.rmtree(os.path.dirname(saved_location))
request.addfinalizer(fin)
return saved_location
@ -171,7 +171,7 @@ def fs_mem_store_no_name(request, mem_store):
def fin():
# teardown, executed regardless of exception
shutil.rmtree(os.path.dirname(filename))
shutil.rmtree(os.path.dirname(saved_location))
request.addfinalizer(fin)
return saved_location