summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bsddb.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-1/+0
| | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface.
* Issue #19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-101-6/+17
|
* Remove unused imports in test modules.Georg Brandl2010-02-071-1/+0
|
* #7092: silence py3k warnings for deprecated modulesEzio Melotti2010-01-301-2/+3
|
* use assert[Not]In where appropriateEzio Melotti2010-01-231-11/+11
|
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-17/+17
|
* A few more test skips via import_module, and change import_module toR. David Murray2009-03-311-2/+7
| | | | | | | return the error message produced by importlib, so that if an import in the package whose import is being wrapped is what failed the skip message will contain the name of that module instead of the name of the wrapped module. Also fixed formatting of some previous comments.
* Fix issue2669: bsddb simple/legacy interface iteration silently failsGregory P. Smith2008-05-251-12/+51
| | | | | | | when database changes size during iteration. It now behaves like a dictionary, the next attempt to get a value from the iterator after the database has changed size will raise a RuntimeError.
* Fix bug 1725856.Gregory P. Smith2007-08-241-0/+16
|
* Fix typo in commentNeal Norwitz2007-02-231-1/+1
|
* Remove usage of sets module (patch #1500609).Georg Brandl2006-07-171-2/+1
|
* Fixes bug #1117761Gregory P. Smith2006-04-121-1/+1
| | | | | | | | | bsddb.*open() methods cachesize parameter wouldn't work (raised an internal bsddb.db exception when it was given). The set_cachesize call needed to be moved from the DB object to the DBEnv since the env was introduced to allow for threading. (will backport to 2.4)
* Closes bug #1149413Gregory P. Smith2006-04-121-1/+8
| | | | | | | Using None for a filename with the 'n' flag when calling bsddb.btopen would cause an error while checking if the file None existed. error not likely to be seen as anyone using None for a filename would likely use the 'c' flag in the first place.
* * 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