summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/test/test_basics.py
Commit message (Collapse)AuthorAgeFilesLines
* bsddb module updated to version 4.7.2devel9.Jesus Cea2008-07-231-16/+59
| | | | | | | | | | | | | This patch publishes the work done until now for Python 3.0 compatibility. Still a lot to be done. When possible, we use 3.0 features in Python 2.6, easing development and testing, and exposing internal changes to a wider audience, for better test coverage. Some mode details: http://www.jcea.es/programacion/pybsddb.htm#bsddb3-4.7.2
* Testsuite for bsddb module, version 4.6.4Jesus Cea2008-05-131-118/+116
|
* #2503 make singletons compared with "is" not == or !=Benjamin Peterson2008-03-291-2/+2
| | | | Thanks to Wummel for the patch
* Close the file before trying to remove the directory so it works on Windows.Neal Norwitz2008-03-041-1/+2
| | | | As reported by Trent Nelson on python-dev.
* Modify import of test_support so that the code can also be used with aGregory P. Smith2008-03-021-1/+5
| | | | | stand alone distribution of bsddb that includes its own small copy of test_support for the needed functionality on older pythons.
* Create a db_home directory with a unique name so multiple users canNeal Norwitz2008-02-241-9/+5
| | | | | | | | | | | | run the test simultaneously. The simplest thing I found that worked on both Windows and Unix was to use the PID. It's unique so should be sufficient. This should prevent many of the spurious failures of the automated tests since they run as different users. Also cleanup the directory consistenly in the tearDown methods. It would be nice if someone ensured that the directories are always created with a consistent name.
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+0
|
* [Patch #1520904] Fix bsddb tests to write to the temp directory instead of ↵Andrew M. Kuchling2007-01-051-1/+1
| | | | the Lib/bsddb/test directory
* This was found by Guido AFAIK on p3yk (sic) branch.Neal Norwitz2006-09-051-1/+1
|
* - pybsddb Bug #1527939: bsddb module DBEnv dbremove and dbrenameGregory P. Smith2006-07-281-6/+31
| | | | | | | methods now allow their database parameter to be None as the sleepycat API allows. Also adds an appropriate test case for DBEnv.dbrename and dbremove.
* * support DBEnv.log_stat() method on BerkeleyDB >= 4.0 [patch #1494885]Gregory P. Smith2006-06-051-0/+7
|
* bugfix: when log_archive was called with the DB_ARCH_REMOVE flag presentGregory P. Smith2006-06-051-0/+3
| | | | | | | in BerkeleyDB >= 4.2 it tried to construct a list out of an uninitialized char **log_list. feature: export the DB_ARCH_REMOVE flag by name in the module on BerkeleyDB >= 4.2.
* Add wrapper for DBEnv.set_tx_timeout method to allow time based DB_RECOVERGregory P. Smith2006-01-271-0/+3
| | | | (test cases and dbobj wrapping)
* Tools/scripts/reindent.py _is_ your friendAnthony Baxter2005-06-081-7/+7
|
* pybsddb 4.3.2:Gregory P. Smith2005-06-041-4/+7
| | | | | | | | | | | * the has_key() method was not raising a DBError when a database error had occurred. [SF patch id 1212590] * added a wrapper for the DBEnv.set_lg_regionmax method [SF patch id 1212590] * DBKeyEmptyError now derives from KeyError just like DBNotFoundError. * internally everywhere DB_NOTFOUND was checked for has been updated to also check for DB_KEYEMPTY. This fixes the semantics of a couple operations on recno and queue databases to be more intuitive and results in less unexpected DBKeyEmptyError exceptions being raised.
* Whitespace normalization, via reindent.py.Tim Peters2004-07-181-3/+3
|
* Fixes SF bug # 778421Gregory P. Smith2004-02-261-1/+6
| | | | | | | | | * Fixed a bug in the compatibility interface set_location() method where it would not properly search to the next nearest key when used on BTree databases. [SF bug id 788421] * Fixed a bug in the compatibility interface set_location() method where it could crash when looking up keys in a hash or recno format database due to an incorrect free().
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-4/+4
| | | | From SF patch #852334.
* __init__.py: keep it compatible with older python (True and False == 1 and 0)Gregory P. Smith2004-01-131-4/+15
| | | | test_basics.py: updated for the set_get_returns_none() default of 2 change.
* bsddb3 4.2.2, adds DBCursor.get_current_size() method to return the lengthGregory P. Smith2003-10-011-36/+36
| | | | of the current value without reading the value itself.
* Adds basic support for BerkeleyDB 4.2.x. Compiles and passes tests; newGregory P. Smith2003-09-211-3/+3
| | | | | | | | | | features in BerkeleyDB not exposed. notably: the DB_MPOOLFILE interface has not yet been wrapped in an object. Adds support for building and installing bsddb3 in python2.3 that has an older version of this module installed as bsddb without conflicts. The pybsddb.sf.net build/packaged version of the module uses a dynamicly loadable module called _pybsddb rather than _bsddb.
* bsddb 4.1.6:Gregory P. Smith2003-07-091-9/+54
| | | | | | | | | | | * Extended DB & DBEnv set_get_returns_none functionality to take a "level" instead of a boolean flag. The boolean 0 and 1 values still have the same effect. A value of 2 extends the "return None instead of raising an exception" behaviour to the DBCursor set methods. This will become the default behaviour in pybsddb 4.2. * Fixed a typo in DBCursor.join_item method that made it crash instead of returning a value. Obviously nobody uses it. Wrote a test case for join and join_item.
* Everything worked in both the distutils distro and in Python 2.3cvs,Barry Warsaw2003-01-281-1/+6
| | | | so merge from the bsddb-bsddb3-schizo-branch back to the trunk.
* bugfix: do not double-close DB cursor during deallocation when theGregory P. Smith2003-01-171-0/+12
| | | | | | | | | | underlying DB has already been closed (and thus all of its cursors). This fixes a potential segfault. SF pybsddb bug id 667343 bugfix: close the DB object when raising an exception due to an error during DB.open. This prevents an exception when closing the environment about not all databases being closed. SF pybsddb bug id 667340
* bugfix: disallow use of DB_TXN after commit() or abort(), prevents aGregory P. Smith2003-01-171-0/+20
| | | | | | | | | coredump or segmentation violation. Sourceforge patch ID 664896: http://sourceforge.net/tracker/index.php?func=detail&aid=664896&group_id=13900&atid=313900 The bug was reported on the pybsddb-users mailing list.
* Port BerkeleyDB 4.1 support from the pybsddb project. bsddb is now atBarry Warsaw2002-12-301-58/+95
| | | | version 4.1.1 and works with up to BerkeleyDB 4.1.25.
* Whitespace normalization.Tim Peters2002-11-241-1/+0
|
* Importing test suite from bsddb3 3.4.0 (with modifications).Martin v. Löwis2002-11-191-0/+814