diff options
| -rw-r--r-- | tests/HosterPluginTester.py | 6 | 
1 files changed, 2 insertions, 4 deletions
| diff --git a/tests/HosterPluginTester.py b/tests/HosterPluginTester.py index 2dd674367..8e18c3eb9 100644 --- a/tests/HosterPluginTester.py +++ b/tests/HosterPluginTester.py @@ -1,6 +1,5 @@  # -*- coding: utf-8 -*- -from os import remove  from os.path import dirname  from logging import log, DEBUG  from hashlib import md5 @@ -16,7 +15,7 @@ from helper.PluginTester import PluginTester  from module.PyFile import PyFile  from module.plugins.Base import Fail  from module.utils import accumulate -from module.utils.fs import save_join, join, exists, listdir +from module.utils.fs import save_join, join, exists, listdir, remove  DL_DIR = join("Downloads", "tmp") @@ -26,8 +25,7 @@ class HosterPluginTester(PluginTester):      def setUp(self):          PluginTester.setUp(self)          for f in self.files: -            pass -            if exists(join(DL_DIR, f)): remove(join(DL_DIR, f)) +            if exists(save_join(DL_DIR, f)): remove(save_join(DL_DIR, f))          # folder for reports          report = join("tmp", self.__class__.__name__) | 
