1515# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717#
18- # $Id: test_init.py,v 1.10 2002-06 -11 04:59:14 richard Exp $
18+ # $Id: test_init.py,v 1.11 2002-07 -11 01:12:34 richard Exp $
1919
2020import unittest , os , shutil , errno , imp , sys
2121
@@ -119,6 +119,11 @@ class bsddb3ClassicTestCase(ClassicTestCase):
119119class bsddb3ExtendedTestCase (ExtendedTestCase ):
120120 backend = 'bsddb3'
121121
122+ class metakitClassicTestCase (ClassicTestCase ):
123+ backend = 'metakit'
124+ class metakitExtendedTestCase (ExtendedTestCase ):
125+ backend = 'metakit'
126+
122127def suite ():
123128 l = [unittest .makeSuite (ClassicTestCase , 'test' ),
124129 unittest .makeSuite (ExtendedTestCase , 'test' )]
@@ -136,10 +141,20 @@ def suite():
136141 except :
137142 print 'bsddb3 module not found, skipping bsddb3 DBTestCase'
138143
144+ try :
145+ import metakit
146+ l .append (unittest .makeSuite (metakitClassicTestCase , 'test' ))
147+ l .append (unittest .makeSuite (metakitExtendedTestCase , 'test' ))
148+ except :
149+ print 'metakit module not found, skipping bsddb3 DBTestCase'
150+
139151 return unittest .TestSuite (l )
140152
141153#
142154# $Log: not supported by cvs2svn $
155+ # Revision 1.10 2002/06/11 04:59:14 richard
156+ # enabled testing of bsddb in test_init
157+ #
143158# Revision 1.9 2002/05/23 04:26:05 richard
144159# 'I must run unit tests before committing\n' * 100
145160#
0 commit comments