summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-16 21:12:01 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-16 21:12:01 +0100
commit7db6de72f2446d8ead6714f25b5e814cb7585b5a (patch)
tree465b69438ae7f5e46aad9e9e6bbdd57d1fb5383f /tests
parentunicode fix (diff)
downloadpyload-7db6de72f2446d8ead6714f25b5e814cb7585b5a.tar.xz
encoding fix
Diffstat (limited to 'tests')
-rw-r--r--tests/HosterPluginTester.py6
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__)