summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb
Commit message (Collapse)AuthorAgeFilesLines
...
* Create a db_home directory with a unique name so multiple users canNeal Norwitz2008-02-2415-77/+51
| | | | | | | | | | | | 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-2316-24/+9
|
* Consistently use tempfile.tempdir for the db_home directory.Neal Norwitz2008-01-265-5/+8
|
* Fix exception in tearDown on ppc buildbot. If there's no directory,Neal Norwitz2008-01-261-2/+5
| | | | that shouldn't cause the test to fail. Just like it setUp.
* * db->get_flags is only available in BerkeleyDB >= 4.2Gregory P. Smith2007-11-051-0/+4
|
* Add the bsddb.db.DBEnv.lock_id_free method.Gregory P. Smith2007-11-051-14/+12
| | | | Improve test_lock's tempdir creation and cleanup.
* Fixes bug 477182 on pybsddb.sf.net. DB objects now load the flags andGregory P. Smith2007-11-051-0/+24
| | | | | | | | | | pay attention to them when opening an existing database. This means that d[] behaves properly even on databases previously created with DB_DUP or DB_DUPSORT flags to allow duplicate keys. http://sourceforge.net/tracker/index.php?func=detail&aid=477182&group_id=13900&atid=113900 Do not backport, this bugfix could be considered an API change.
* Undo revision 58533 58534 fixes. Those were a workaround forGregory P. Smith2007-11-011-3/+2
| | | | a problem introduced by 58385.
* Fix bug introduced in revision 58385. Database keys could no longerGregory P. Smith2007-11-011-4/+21
| | | | | have NULL bytes in them. Replace the errant strdup with a malloc+memcpy. Adds a unit test for the correct behavior.
* squelch the warning that this test is supposed to trigger.Gregory P. Smith2007-10-191-2/+7
|
* A cleaner fix than the one committed last night. Generate random rowids thatGregory P. Smith2007-10-181-5/+6
| | | | do not contain null bytes.
* Fix a weird bug in dbtables: if it chose a random rowid string that containedGregory P. Smith2007-10-181-4/+4
| | | | | NULL bytes it would cause the database all sorts of problems in the future leading to very strange random failures and corrupt dbtables.bsdTableDb dbs.
* cleanup test_dbtables to use mkdtemp. cleanup dbtables to pass txn as aGregory P. Smith2007-10-182-19/+18
| | | | | keyword argument whenever possible to avoid bugs and confusion. (dbtables.py line 447 self.db.get using txn as a non-keyword was an actual bug due to this)
* Use unittest for assertionsNeal Norwitz2007-10-141-33/+34
|
* Don't raise a string exception, they don't work anymore.Neal Norwitz2007-10-141-1/+1
|
* Fix an uncollectable reference leak in bsddb.db.DBShelf.appendGregory P. Smith2007-10-131-2/+19
|
* Fixes http://bugs.python.org/issue1233 - bsddb.dbshelve.DBShelf.appendGregory P. Smith2007-10-122-23/+78
| | | | | was useless due to inverted logic. Also adds a test case for RECNO dbs to test_dbshelve.
* Use the highest cPickle protocol in bsddb.dbshelve. This comes fromGregory P. Smith2007-10-091-14/+28
| | | | sourceforge pybsddb patch 1551443 by w_barnes.
* Fix a double free when positioning a database cursor to a non-existantGregory P. Smith2007-10-091-0/+20
| | | | | | string key (and probably a few other situations with string keys). This was reported with a patch as pybsddb sourceforge bug 1708868 by jjjhhhlll at gmail.
* email address updateGregory P. Smith2007-09-093-3/+3
|
* Apply the fix from Issue1112 to make this test more robust and keepGregory P. Smith2007-09-061-9/+22
| | | | windows happy.
* Fix bug 1725856.Gregory P. Smith2007-08-241-0/+4
|
* stop leaving log.0000001 __db.00* and xxx.db turds in developerGregory P. Smith2007-08-221-1/+9
| | | | sandboxes when bsddb3 tests are run.
* Give some clue as to what happened if the test fails.Neal Norwitz2007-05-191-1/+1
|
* [Patch #1520904] Fix bsddb tests to write to the temp directory instead of ↵Andrew M. Kuchling2007-01-0511-14/+17
| | | | the Lib/bsddb/test directory
* Support linking of the bsddb module against BerkeleyDB 4.5.xGregory P. Smith2007-01-052-3/+4
| | | | (will backport to 2.5)
* Oops, convert tabs to spacesNeal Norwitz2006-11-211-2/+2
|
* Bug #1599782: Fix segfault on bsddb.db.DB().type().Neal Norwitz2006-11-211-0/+4
| | | | | | | | | The problem is that _DB_get_type() can't be called without the GIL because it calls a bunch of PyErr_* APIs when an error occurs. There were no other cases in this file that it was called without the GIL. Removing the BEGIN/END THREAD around _DB_get_type() made everything work. Will backport.
* 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.
* - bsddb: multithreaded DB access using the simple bsddb module interfaceGregory P. Smith2006-06-152-31/+39
| | | | | | now works reliably. It has been updated to use automatic BerkeleyDB deadlock detection and the bsddb.dbutils.DeadlockWrap wrapper to retry database calls that would previously deadlock. [SF python bug #775414]
* Fix errors found by pycheckerNeal Norwitz2006-06-112-3/+9
|
* pasted set_lk_detect line in wrong spot in previous commit. fixed. passes ↵Gregory P. Smith2006-06-081-1/+1
| | | | tests this time.
* * Turn the deadlock situation described in SF bug #775414 into aGregory P. Smith2006-06-082-0/+11
| | | | | DBDeadLockError exception. * add the test case for my previous dbtables commit.
* - bsddb: the bsddb.dbtables Modify method now raises the proper error andGregory P. Smith2006-06-081-18/+25
| | | | | | | | | aborts the db transaction safely when a modifier callback fails. Fixes SF python patch/bug #1408584. Also cleans up the bsddb.dbtables docstrings since thats the only documentation that exists for that unadvertised module. (people really should really just use sqlite3)
* Add missing svn:eol-style property to text files.Tim Peters2006-06-051-65/+65
|
* * fix DBCursor.pget() bug with keyword argument names when no data= isGregory P. Smith2006-06-052-0/+66
| | | | supplied [SF pybsddb bug #1477863]
* Whitespace normalization.Tim Peters2006-06-051-3/+2
|
* forgot to add this file in previous commitGregory P. Smith2006-06-051-0/+112
|
* * add support for DBSequence objects [patch #1466734]Gregory P. Smith2006-06-052-6/+42
|
* * support DBEnv.lsn_reset() method on BerkeleyDB >= 4.4 [patch #1494902]Gregory P. Smith2006-06-051-2/+8
|
* Whitespace normalization.Tim Peters2006-06-051-2/+2
|
* * support DBEnv.log_stat() method on BerkeleyDB >= 4.0 [patch #1494885]Gregory P. Smith2006-06-052-0/+10
|
* 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.
* BaseThreadedTestCase.setup(): stop special-casing WindowsError.Tim Peters2006-05-111-2/+0
| | | | | Rev 45964 fiddled with WindowsError, and broke test_bsddb3 on all the Windows buildbot slaves as a result. This should repair it.
* Handle ERROR_ALREADY_EXISTS.Martin v. Löwis2006-05-061-0/+8
|
* Fixes bug #1117761Gregory P. Smith2006-04-121-7/+9
| | | | | | | | | 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/+1
| | | | | | | 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.
* Fix bsddb.db.DBError derived exceptions so they can be unpickled.Gregory P. Smith2006-04-082-0/+76
| | | | | Also adds some backwards compatibility when compiling _bsddb.c on earlier python versions (needed for pybsddb).
* Plug the last 657 referenceleaks in test_bsddb3: a circular referenceThomas Wouters2006-03-121-0/+5
| | | | | | | between a TestCase instance, the database it opened (or a cursor to a database) and a bound method as a registered database callback, and a lack of GC-handling in bsddb caused the TestCases to linger. Fix the test, for now, as backward compatibility makes adding GC to bsddb annoying.