comparison test/test_init.py @ 243:1e571b6be57a 0.2.7

Disabled the bsddb3 module entirely in the unit testing. See CHANGES for details.
author Richard Jones <richard@users.sourceforge.net>
date Wed, 29 Aug 2001 06:23:59 +0000
parents 18134bffab37
children d4ef19ef17bd
comparison
equal deleted inserted replaced
242:22bab253c9ea 243:1e571b6be57a
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.4 2001-08-07 00:24:43 richard Exp $ 18 # $Id: test_init.py,v 1.5 2001-08-29 06:23:59 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.init import init 22 from roundup.init import init
23 23
119 x.backend = 'bsddb' 119 x.backend = 'bsddb'
120 l.append(unittest.makeSuite(x, 'test')) 120 l.append(unittest.makeSuite(x, 'test'))
121 except: 121 except:
122 print 'bsddb module not found, skipping bsddb DBTestCase' 122 print 'bsddb module not found, skipping bsddb DBTestCase'
123 123
124 try: 124 # try:
125 import bsddb3 125 # import bsddb3
126 x = ClassicTestCase 126 # x = ClassicTestCase
127 x.backend = 'bsddb3' 127 # x.backend = 'bsddb3'
128 l.append(unittest.makeSuite(x, 'test')) 128 # l.append(unittest.makeSuite(x, 'test'))
129 x = ExtendedTestCase 129 # x = ExtendedTestCase
130 x.backend = 'bsddb3' 130 # x.backend = 'bsddb3'
131 l.append(unittest.makeSuite(x, 'test')) 131 # l.append(unittest.makeSuite(x, 'test'))
132 except: 132 # except:
133 print 'bsddb3 module not found, skipping bsddb3 DBTestCase' 133 # print 'bsddb3 module not found, skipping bsddb3 DBTestCase'
134 134
135 return unittest.TestSuite(l) 135 return unittest.TestSuite(l)
136 136
137 # 137 #
138 # $Log: not supported by cvs2svn $ 138 # $Log: not supported by cvs2svn $
139 # Revision 1.4 2001/08/07 00:24:43 richard
140 # stupid typo
141 #
139 # Revision 1.3 2001/08/07 00:15:51 richard 142 # Revision 1.3 2001/08/07 00:15:51 richard
140 # Added the copyright/license notice to (nearly) all files at request of 143 # Added the copyright/license notice to (nearly) all files at request of
141 # Bizar Software. 144 # Bizar Software.
142 # 145 #
143 # Revision 1.2 2001/08/05 07:45:27 richard 146 # Revision 1.2 2001/08/05 07:45:27 richard

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