storage test

pull/3/head
Eugen Ciur 2020-05-04 16:44:56 +02:00
parent fc0bfb6fc6
commit 2d3006e344
1 changed files with 2 additions and 2 deletions

View File

@ -45,9 +45,9 @@ class TemporaryNode:
return self
def __exit__(self):
def __exit__(self, exc_type, exc_value, traceback):
if os.path.exists(self.location):
if os.path.is_dir(self.location):
if os.path.isdir(self.location):
os.rmdir(self.location)
else:
os.remove(self.location)