[Patches] [ python-Patches-541694 ] whichdb unittest

noreply@sourceforge.net noreply@sourceforge.net
Fri, 12 Apr 2002 13:43:36 -0700


Patches item #541694, was opened at 2002-04-09 15:15
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=541694&group_id=5470

Category: Tests
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Gregory H. Ball (greg_ball)
>Assigned to: Neal Norwitz (nnorwitz)
Summary: whichdb unittest

Initial Comment:
Attached patch is a first crack at a unit test for
whichdb.
I think that all functionality required for use by the
anydbm module is tested, but only for the
database modules found in a given installation.

The test case is built up at runtime to cover all the 
available modules, so it is a bit introspective,
but I think it is obvious that it should run correctly.

Unfortunately it crashes on my box (Redhat 6.2) and 
this seems to be a real problem with whichdb:
it assumes things about the dbm format which turn out
to be wrong sometimes.

I only discovered this because test_anydbm was
crashing,
when whichdb failed to work on dbm files.  It would not
have crashed if dbhash was available...  and dbhash was
not available
because bsddb was not built correctly.   So I think
there is a build bug there, but I have little idea how
to solve that one at this
point.

Would I be correct in thinking that if this test really
uncovers bugs in whichdb, it can't be checked in until
they are fixed?   Unfortunately I don't know much about
the various 
databases, but I'll try to work with someone on it.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=541694&group_id=5470