Commits

jordilin committed b6eb782

removed spurious config file that was left around after tests

Comments (0)

Files changed (2)

test/test_cornermark.py

         self.assertEquals(output, sys.stdout.captured[2])
 
     def testMarkedTARGET(self):
-        configfile = "aconfig.txt"
+        configfile = CONFIG
         logfile = "/any/path/out.log"
         trace = "this is a targeted log trace"
         fh = open(configfile, 'w')
         self.assertEqual(output, sys.stdout.captured[0])
 
     def testMarkedTARGETOverMarkableLevel(self):
-        configfile = "aconfig.txt"
+        configfile = CONFIG
         logfile = "/any/path/out.log"
         trace = "this is a FATAL targeted log trace"
         fh = open(configfile, 'w')
         self.assertEqual(output, sys.stdout.captured[0])
     
     def tearDown(self):
+        if os.path.exists(CONFIG):
+            os.remove(CONFIG)
         sys.stdout = self.sysback
 
 if __name__ == '__main__':

test/test_resume.py

         self.assertEquals(21, reportlength)
 
     def tearDown(self):
+        if os.path.exists('aconfig.txt'):
+            os.remove('aconfig.txt')
         os.remove('out.log')
         os.remove('out2.log')