Skip to content

Commit 0851614

Browse files
author
Richard Jones
committed
enabled testing of bsddb in test_init
1 parent 9d67a41 commit 0851614

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

test/test_init.py

Lines changed: 10 additions & 7 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_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 $
1919

2020
import unittest, os, shutil, errno, imp, sys
2121

@@ -129,17 +129,20 @@ def suite():
129129
except:
130130
print 'bsddb module not found, skipping bsddb DBTestCase'
131131

132-
# try:
133-
# import bsddb3
134-
# l.append(unittest.makeSuite(bsddb3ClassicTestCase, 'test'))
135-
# l.append(unittest.makeSuite(bsddb3ExtendedTestCase, 'test'))
136-
# except:
137-
# print 'bsddb3 module not found, skipping bsddb3 DBTestCase'
132+
try:
133+
import bsddb3
134+
l.append(unittest.makeSuite(bsddb3ClassicTestCase, 'test'))
135+
l.append(unittest.makeSuite(bsddb3ExtendedTestCase, 'test'))
136+
except:
137+
print 'bsddb3 module not found, skipping bsddb3 DBTestCase'
138138

139139
return unittest.TestSuite(l)
140140

141141
#
142142
# $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+
#
143146
# Revision 1.8 2002/05/15 03:27:16 richard
144147
# . fixed SCRIPT_NAME in ZRoundup for instances not at top level of Zope
145148
# (thanks dman)

0 commit comments

Comments
 (0)