Mercurial > p > roundup > code
diff test/test_db.py @ 726:e3d742c75ac3
Well whadya know, bsddb3 works again.
The backend is implemented _exactly_ the same as bsddb - so there's no
using its transaction or locking support. It'd be nice to use those some
day I suppose.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 21 May 2002 05:52:11 +0000 |
| parents | 509a101305da |
| children | 491049fb8e31 |
line wrap: on
line diff
--- a/test/test_db.py Fri May 17 00:43:42 2002 +0000 +++ b/test/test_db.py Tue May 21 05:52:11 2002 +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.21 2002-04-15 23:25:15 richard Exp $ +# $Id: test_db.py,v 1.22 2002-05-21 05:52:11 richard Exp $ import unittest, os, shutil @@ -366,17 +366,23 @@ except: print 'bsddb module not found, skipping bsddb DBTestCase' -# try: -# import bsddb3 -# l.append(unittest.makeSuite(bsddb3DBTestCase, 'test')) -# l.append(unittest.makeSuite(bsddb3ReadOnlyDBTestCase, 'test')) -# except: -# print 'bsddb3 module not found, skipping bsddb3 DBTestCase' + try: + import bsddb3 + l.append(unittest.makeSuite(bsddb3DBTestCase, 'test')) + l.append(unittest.makeSuite(bsddb3ReadOnlyDBTestCase, 'test')) + except: + print 'bsddb3 module not found, skipping bsddb3 DBTestCase' return unittest.TestSuite(l) # # $Log: not supported by cvs2svn $ +# Revision 1.21 2002/04/15 23:25:15 richard +# . node ids are now generated from a lockable store - no more race conditions +# +# We're using the portalocker code by Jonathan Feinberg that was contributed +# to the ASPN Python cookbook. This gives us locking across Unix and Windows. +# # Revision 1.20 2002/04/03 05:54:31 richard # Fixed serialisation problem by moving the serialisation step out of the # hyperdb.Class (get, set) into the hyperdb.Database.
