From 7db6de72f2446d8ead6714f25b5e814cb7585b5a Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 16 Jan 2012 21:12:01 +0100 Subject: encoding fix --- tests/HosterPluginTester.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests') 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__) -- cgit v1.2.3