Skip to content

Commit 89f7b53

Browse files
author
Richard Jones
committed
test fix
1 parent 0780938 commit 89f7b53

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_db.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
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

2020
import unittest, os, shutil, time
2121

@@ -829,9 +829,9 @@ def tearDown(self):
829829
class 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)

0 commit comments

Comments
 (0)