summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb
Commit message (Collapse)AuthorAgeFilesLines
* Better integration between Python testing and bsddb3Jesus Cea2008-05-271-9/+12
|
* Fix issue2669: bsddb simple/legacy interface iteration silently failsGregory P. Smith2008-05-251-63/+77
| | | | | | | 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.
* * Give the test_bsddb3 tests a unique temporary directory to run theirGregory P. Smith2008-05-251-7/+15
| | | | | | | | stuff in and clean it up afterwards regardless of the result. * Get rid of duplicate list of test modules to run, they're maintained within test_all now. * Print the BerkeleyDB version to stderr when running test_bsddb3 to help buildbot problem diagnosis.
* Use test_support to get network ports to bind to.Gregory P. Smith2008-05-251-8/+10
|
* bsddb module updated to version 4.7.0Jesus Cea2008-05-223-4/+4
|
* bsddb: Beware with sequence wrappingJesus Cea2008-05-191-9/+5
|
* issue2858: Fix potential memory corruption when bsddb.db.DBEnv.lock_getGregory P. Smith2008-05-171-7/+1
| | | | | and other bsddb.db object constructors raised an exception. Debugging & patch by Neal Norowitz.
* disable the crashing test. I will also file a bug. This crash doesGregory P. Smith2008-05-151-1/+7
| | | | | | not appear to be a new bug, its just that the test coverage went up recently exposing it. (I verified that by testing this test code on an older Modules/_bsddb.c)
* Testsuite for bsddb module, version 4.6.4Jesus Cea2008-05-1325-714/+1213
|
* #2503 make singletons compared with "is" not == or !=Benjamin Peterson2008-03-293-6/+6
| | | | Thanks to Wummel for the patch
* Make sure that the warnings filter is not reset or changed beyond the currentBrett Cannon2008-03-191-4/+5
| | | | | | running test file. Closes issue2407. Thanks Jerry Seutter.
* Remove the files/dirs after closing the DB so the tests work on Windows.Neal Norwitz2008-03-052-6/+3
| | | | Patch from Trent Nelson. Also simplified removing a file by using test_support.
* 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-0215-15/+73
| | | | | 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-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
|