comparison test/test_init.py @ 759:dc05d4531f81

enabled testing of bsddb in test_init
author Richard Jones <richard@users.sourceforge.net>
date Tue, 11 Jun 2002 04:59:14 +0000
parents b105b46f6324
children 335b49965293
comparison
equal deleted inserted replaced
758:ae0ec3c15e0d 759:dc05d4531f81
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
18 # $Id: test_init.py,v 1.9 2002-05-23 04:26:05 richard Exp $ 18 # $Id: test_init.py,v 1.10 2002-06-11 04:59:14 richard Exp $
19 19
20 import unittest, os, shutil, errno, imp, sys 20 import unittest, os, shutil, errno, imp, sys
21 21
22 from roundup import init 22 from roundup import init
23 23
127 l.append(unittest.makeSuite(bsddbClassicTestCase, 'test')) 127 l.append(unittest.makeSuite(bsddbClassicTestCase, 'test'))
128 l.append(unittest.makeSuite(bsddbExtendedTestCase, 'test')) 128 l.append(unittest.makeSuite(bsddbExtendedTestCase, 'test'))
129 except: 129 except:
130 print 'bsddb module not found, skipping bsddb DBTestCase' 130 print 'bsddb module not found, skipping bsddb DBTestCase'
131 131
132 # try: 132 try:
133 # import bsddb3 133 import bsddb3
134 # l.append(unittest.makeSuite(bsddb3ClassicTestCase, 'test')) 134 l.append(unittest.makeSuite(bsddb3ClassicTestCase, 'test'))
135 # l.append(unittest.makeSuite(bsddb3ExtendedTestCase, 'test')) 135 l.append(unittest.makeSuite(bsddb3ExtendedTestCase, 'test'))
136 # except: 136 except:
137 # print 'bsddb3 module not found, skipping bsddb3 DBTestCase' 137 print 'bsddb3 module not found, skipping bsddb3 DBTestCase'
138 138
139 return unittest.TestSuite(l) 139 return unittest.TestSuite(l)
140 140
141 # 141 #
142 # $Log: not supported by cvs2svn $ 142 # $Log: not supported by cvs2svn $
143 # Revision 1.9 2002/05/23 04:26:05 richard
144 # 'I must run unit tests before committing\n' * 100
145 #
143 # Revision 1.8 2002/05/15 03:27:16 richard 146 # Revision 1.8 2002/05/15 03:27:16 richard
144 # . fixed SCRIPT_NAME in ZRoundup for instances not at top level of Zope 147 # . fixed SCRIPT_NAME in ZRoundup for instances not at top level of Zope
145 # (thanks dman) 148 # (thanks dman)
146 # . fixed some sorting issues that were breaking some unit tests under py2.2 149 # . fixed some sorting issues that were breaking some unit tests under py2.2
147 # . mailgw test output dir was confusing the init test (but only on 2.2 *shrug*) 150 # . mailgw test output dir was confusing the init test (but only on 2.2 *shrug*)

Roundup Issue Tracker: http://roundup-tracker.org/