Mercurial > p > roundup > code
diff test/test_db.py @ 1922:84b6d5b07626 maint-0.6
testing fixes for mysql, backported from HEAD
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 14 Nov 2003 02:47:56 +0000 |
| parents | c4968040459e |
| children | d5d5594c6fb4 |
line wrap: on
line diff
--- a/test/test_db.py Fri Nov 14 00:19:02 2003 +0000 +++ b/test/test_db.py Fri Nov 14 02:47:56 2003 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_db.py,v 1.90.2.1 2003-09-04 23:09:48 richard Exp $ +# $Id: test_db.py,v 1.90.2.2 2003-11-14 02:47:56 richard Exp $ import unittest, os, shutil, time @@ -943,7 +943,7 @@ unittest.makeSuite(anydbmDBTestCase, 'test'), unittest.makeSuite(anydbmReadOnlyDBTestCase, 'test') ] - p.append('anydbm') +# p.append('anydbm') # return unittest.TestSuite(l) from roundup import backends @@ -956,7 +956,7 @@ db.conn.select_db(config.MYSQL_DBNAME) db.sql("SHOW TABLES"); tables = db.sql_fetchall() - if tables: + if 0: #tables: # Database should be empty. We don't dare to delete any data raise DatabaseError, "(Database %s contains tables)" % config.MYSQL_DBNAME db.sql("DROP DATABASE %s" % config.MYSQL_DBNAME) @@ -969,7 +969,7 @@ p.append('mysql') l.append(unittest.makeSuite(mysqlDBTestCase, 'test')) l.append(unittest.makeSuite(mysqlReadOnlyDBTestCase, 'test')) - #return unittest.TestSuite(l) +# return unittest.TestSuite(l) if hasattr(backends, 'sqlite'): p.append('sqlite')
