summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bsddb.py
Commit message (Collapse)AuthorAgeFilesLines
* * Use weakref's of DBCursor objects for the iterator cursors to avoid aGregory P. Smith2003-11-031-3/+76
| | | | | | | | | | memory leak that would've occurred for all iterators that were destroyed before having iterated until they raised StopIteration. * Simplify some code. * Add new test cases to check for the memleak and ensure that mixing iteration with modification of the values for existing keys works.
* * Fix the singlethreaded deadlocks occurring in the simple bsddb interface.Gregory P. Smith2003-11-021-1/+52
| | | | | * Add support for multiple iterator/generator objects at once on the simple bsddb _DBWithCursor interface.
* * Converted test to unittest format.Raymond Hettinger2003-09-131-85/+158
| | | | * Expanded coverage.
* SF #662923Raymond Hettinger2003-09-121-6/+18
| | | | | | Add support for the iterator and mapping protocols. For Py2.3, this was done for shelve, dumbdbm and other mapping objects, but not for bsddb and dbhash which were inadvertently missed.
* Massive changes from SF 589982 (tempfile.py rewrite, by ZackGuido van Rossum2002-08-091-3/+2
| | | | | Weinberg). This changes all uses of deprecated tempfile functions to the recommended ones.
* Oops, missed an import of test_support.Barry Warsaw2002-07-231-1/+1
|
* SF patch [ 545523 ] patch for 514433 bsddb.dbopen (NULL)Anthony Baxter2002-04-231-19/+26
| | | | | | | | | | | | closes SF #514433 can now pass 'None' as the filename for the bsddb.*open functions, and you'll get an in-memory temporary store. docs are ripped out of the bsddb dbopen man page. Fred may want to clean them up. Considering this for 2.2, but not 2.1.
* Move import dbhash out of test_sundry and into test_bsddb,Guido van Rossum2001-12-071-0/+1
| | | | so that test_sundry won't fail if the bsddb module is absent.
* Check that f.keys() == [] right after creation -- this prevents bugsGuido van Rossum2001-03-221-1/+2
| | | | like the one I just fixed to come back and haunt us.
* a bold attempt to fix things broken by MAL's verify patch: importFredrik Lundh2001-01-171-1/+1
| | | | 'verify' iff it's used by a test module...
* This patch removes all uses of "assert" in the regression test suiteMarc-André Lemburg2001-01-171-1/+1
| | | | | | | and replaces them with a new API verify(). As a result the regression suite will also perform its tests in optimization mode. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
* Update the code to better reflect recommended style:Fred Drake2000-12-121-2/+2
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-1/+1
|
* Remove the temp file when we're done.Guido van Rossum1999-03-241-1/+6
|
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-28/+28
|
* Test script for the bsddb C extension module.Roger E. Masse1997-01-161-0/+69