File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1515# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717#
18- # $Id: test_db.py,v 1.90.2.3 2004-03-12 00:28:31 richard Exp $
18+ # $Id: test_db.py,v 1.90.2.4 2004-03-18 02:40:08 richard Exp $
1919
2020import unittest , os , shutil , time
2121
@@ -829,9 +829,9 @@ def tearDown(self):
829829class mysqlReadOnlyDBTestCase (anydbmReadOnlyDBTestCase ):
830830 def setUp (self ):
831831 from roundup .backends import mysql
832- # remove previous test, ignore errors
833- if os . path . exists ( config . DATABASE ):
834- shutil . rmtree ( config . DATABASE )
832+ mysql . db_nuke ( config )
833+
834+ # open database for testing
835835 os .makedirs (config .DATABASE + '/files' )
836836 self .db = mysql .Database (config )
837837 setupSchema (self .db , 0 , mysql )
You can’t perform that action at this time.
0 commit comments