Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Create a db_home directory with a unique name so multiple users can | Neal Norwitz | 2008-02-24 | 15 | -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 imports | Christian Heimes | 2008-02-23 | 16 | -24/+9 | |
| | ||||||
* | Consistently use tempfile.tempdir for the db_home directory. | Neal Norwitz | 2008-01-26 | 5 | -5/+8 | |
| | ||||||
* | Fix exception in tearDown on ppc buildbot. If there's no directory, | Neal Norwitz | 2008-01-26 | 1 | -2/+5 | |
| | | | | that shouldn't cause the test to fail. Just like it setUp. | |||||
* | * db->get_flags is only available in BerkeleyDB >= 4.2 | Gregory P. Smith | 2007-11-05 | 1 | -0/+4 | |
| | ||||||
* | Add the bsddb.db.DBEnv.lock_id_free method. | Gregory P. Smith | 2007-11-05 | 1 | -14/+12 | |
| | | | | Improve test_lock's tempdir creation and cleanup. | |||||
* | Fixes bug 477182 on pybsddb.sf.net. DB objects now load the flags and | Gregory P. Smith | 2007-11-05 | 1 | -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 for | Gregory P. Smith | 2007-11-01 | 1 | -3/+2 | |
| | | | | a problem introduced by 58385. | |||||
* | Fix bug introduced in revision 58385. Database keys could no longer | Gregory P. Smith | 2007-11-01 | 1 | -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. Smith | 2007-10-19 | 1 | -2/+7 | |
| | ||||||
* | A cleaner fix than the one committed last night. Generate random rowids that | Gregory P. Smith | 2007-10-18 | 1 | -5/+6 | |
| | | | | do not contain null bytes. | |||||
* | Fix a weird bug in dbtables: if it chose a random rowid string that contained | Gregory P. Smith | 2007-10-18 | 1 | -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 a | Gregory P. Smith | 2007-10-18 | 2 | -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 assertions | Neal Norwitz | 2007-10-14 | 1 | -33/+34 | |
| | ||||||
* | Don't raise a string exception, they don't work anymore. | Neal Norwitz | 2007-10-14 | 1 | -1/+1 | |
| | ||||||
* | Fix an uncollectable reference leak in bsddb.db.DBShelf.append | Gregory P. Smith | 2007-10-13 | 1 | -2/+19 | |
| | ||||||
* | Fixes http://bugs.python.org/issue1233 - bsddb.dbshelve.DBShelf.append | Gregory P. Smith | 2007-10-12 | 2 | -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 from | Gregory P. Smith | 2007-10-09 | 1 | -14/+28 | |
| | | | | sourceforge pybsddb patch 1551443 by w_barnes. | |||||
* | Fix a double free when positioning a database cursor to a non-existant | Gregory P. Smith | 2007-10-09 | 1 | -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 update | Gregory P. Smith | 2007-09-09 | 3 | -3/+3 | |
| | ||||||
* | Apply the fix from Issue1112 to make this test more robust and keep | Gregory P. Smith | 2007-09-06 | 1 | -9/+22 | |
| | | | | windows happy. | |||||
* | Fix bug 1725856. | Gregory P. Smith | 2007-08-24 | 1 | -0/+4 | |
| | ||||||
* | stop leaving log.0000001 __db.00* and xxx.db turds in developer | Gregory P. Smith | 2007-08-22 | 1 | -1/+9 | |
| | | | | sandboxes when bsddb3 tests are run. | |||||
* | Give some clue as to what happened if the test fails. | Neal Norwitz | 2007-05-19 | 1 | -1/+1 | |
| | ||||||
* | [Patch #1520904] Fix bsddb tests to write to the temp directory instead of ↵ | Andrew M. Kuchling | 2007-01-05 | 11 | -14/+17 | |
| | | | | the Lib/bsddb/test directory | |||||
* | Support linking of the bsddb module against BerkeleyDB 4.5.x | Gregory P. Smith | 2007-01-05 | 2 | -3/+4 | |
| | | | | (will backport to 2.5) | |||||
* | Oops, convert tabs to spaces | Neal Norwitz | 2006-11-21 | 1 | -2/+2 | |
| | ||||||
* | Bug #1599782: Fix segfault on bsddb.db.DB().type(). | Neal Norwitz | 2006-11-21 | 1 | -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 Norwitz | 2006-09-05 | 1 | -1/+1 | |
| | ||||||
* | - pybsddb Bug #1527939: bsddb module DBEnv dbremove and dbrename | Gregory P. Smith | 2006-07-28 | 1 | -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 interface | Gregory P. Smith | 2006-06-15 | 2 | -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 pychecker | Neal Norwitz | 2006-06-11 | 2 | -3/+9 | |
| | ||||||
* | pasted set_lk_detect line in wrong spot in previous commit. fixed. passes ↵ | Gregory P. Smith | 2006-06-08 | 1 | -1/+1 | |
| | | | | tests this time. | |||||
* | * Turn the deadlock situation described in SF bug #775414 into a | Gregory P. Smith | 2006-06-08 | 2 | -0/+11 | |
| | | | | | DBDeadLockError exception. * add the test case for my previous dbtables commit. | |||||
* | - bsddb: the bsddb.dbtables Modify method now raises the proper error and | Gregory P. Smith | 2006-06-08 | 1 | -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 Peters | 2006-06-05 | 1 | -65/+65 | |
| | ||||||
* | * fix DBCursor.pget() bug with keyword argument names when no data= is | Gregory P. Smith | 2006-06-05 | 2 | -0/+66 | |
| | | | | supplied [SF pybsddb bug #1477863] | |||||
* | Whitespace normalization. | Tim Peters | 2006-06-05 | 1 | -3/+2 | |
| | ||||||
* | forgot to add this file in previous commit | Gregory P. Smith | 2006-06-05 | 1 | -0/+112 | |
| | ||||||
* | * add support for DBSequence objects [patch #1466734] | Gregory P. Smith | 2006-06-05 | 2 | -6/+42 | |
| | ||||||
* | * support DBEnv.lsn_reset() method on BerkeleyDB >= 4.4 [patch #1494902] | Gregory P. Smith | 2006-06-05 | 1 | -2/+8 | |
| | ||||||
* | Whitespace normalization. | Tim Peters | 2006-06-05 | 1 | -2/+2 | |
| | ||||||
* | * support DBEnv.log_stat() method on BerkeleyDB >= 4.0 [patch #1494885] | Gregory P. Smith | 2006-06-05 | 2 | -0/+10 | |
| | ||||||
* | bugfix: when log_archive was called with the DB_ARCH_REMOVE flag present | Gregory P. Smith | 2006-06-05 | 1 | -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 Peters | 2006-05-11 | 1 | -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öwis | 2006-05-06 | 1 | -0/+8 | |
| | ||||||
* | Fixes bug #1117761 | Gregory P. Smith | 2006-04-12 | 1 | -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 #1149413 | Gregory P. Smith | 2006-04-12 | 1 | -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. Smith | 2006-04-08 | 2 | -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 reference | Thomas Wouters | 2006-03-12 | 1 | -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. |