From 2d3006e344c0484ae8ff08714e9691bf24d83aaf Mon Sep 17 00:00:00 2001 From: Eugen Ciur Date: Mon, 4 May 2020 16:44:56 +0200 Subject: [PATCH] storage test --- mglib/test/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mglib/test/utils.py b/mglib/test/utils.py index 3f919ff..945776f 100644 --- a/mglib/test/utils.py +++ b/mglib/test/utils.py @@ -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)