summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorJoel Andres Granados <jgranado@redhat.com>2008-06-04 13:48:50 +0200
committerJoel Andres Granados <jgranado@redhat.com>2008-06-04 13:48:50 +0200
commita7f824fdc70b35561ba33b6c3306fe790b9d8a5a (patch)
tree6f706ccd6ff5e82e90b639c8ec7538b836977df8 /testsuite
parent7eeb679656a7e3a14f9dab43e1ef3b9a9fe62246 (diff)
downloadfirstaidkit-a7f824fdc70b35561ba33b6c3306fe790b9d8a5a.tar.gz
firstaidkit-a7f824fdc70b35561ba33b6c3306fe790b9d8a5a.tar.xz
firstaidkit-a7f824fdc70b35561ba33b6c3306fe790b9d8a5a.zip
Clean the created log file for the initialization testsuite
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/initialization.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/testsuite/initialization.py b/testsuite/initialization.py
index 837f9fb..81e3b52 100644
--- a/testsuite/initialization.py
+++ b/testsuite/initialization.py
@@ -16,7 +16,7 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-import unittest, imp, py_compile
+import unittest, imp, py_compile, os, os.path
from pyfirstaidkit import Config
from pyfirstaidkit import initLogger
from pyfirstaidkit.plugins import PluginSystem
@@ -33,6 +33,10 @@ class Initialization(unittest.TestCase):
self.plugin = self.pluginSystem.getplugin("pluginInfo")
py_compile.compile("%s/pycFile" % self.contentdir, cfile="%s/pycFile.pyc" % self.contentdir)
+ def tearDown(self):
+ if(os.path.isfile(Config.log.filename)):
+ os.remove(Config.log.filename)
+
class Imports(Initialization):
"""Tests the capability of importing 3 typs of files."""