summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/test
Commit message (Collapse)AuthorAgeFilesLines
* Fix a couple more tests.Ezio Melotti2010-08-031-1/+1
|
* Fix test_recno.Ezio Melotti2010-08-021-8/+8
|
* Merged revisions 77912 via svnmerge fromEzio Melotti2010-08-027-41/+36
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77912 | ezio.melotti | 2010-02-02 17:57:45 +0200 (Tue, 02 Feb 2010) | 1 line Fix idioms and a couple of py3k warnings. Patch by Florent Xicluna. ........
* Merged revisions 77871,77910,77913 via svnmerge fromEzio Melotti2010-08-026-72/+29
| | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77871 | ezio.melotti | 2010-01-31 13:46:54 +0200 (Sun, 31 Jan 2010) | 1 line #7092: silence more -3 and -Wd warnings ........ r77910 | ezio.melotti | 2010-02-02 10:37:35 +0200 (Tue, 02 Feb 2010) | 1 line #7092: silence py3k warnings for bsddb. Patch by Florent Xicluna. ........ r77913 | ezio.melotti | 2010-02-02 19:34:37 +0200 (Tue, 02 Feb 2010) | 1 line #7092: Silence py3k warnings in test_exceptions and test_pep352. Patch by Florent Xicluna. ........
* Merged revisions 78563 via svnmerge fromFlorent Xicluna2010-03-012-0/+13
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78563 | florent.xicluna | 2010-03-01 21:45:01 +0100 (lun, 01 mar 2010) | 2 lines #7808: Fix reference leaks in _bsddb and related tests. ........
* Merged revisions 78558 via svnmerge fromR. David Murray2010-03-011-18/+20
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78558 | r.david.murray | 2010-03-01 14:14:16 -0500 (Mon, 01 Mar 2010) | 6 lines Issue 3892 again. The bsddb3 replication test still fails randomly. Since this module is unmaintained in the library and gone in py3k, this patch skips the remainder of the replication test if a second timeout occurs, as it randomly does. This should improve buildbot stability. ........
* Merged revisions 77733 via svnmerge fromEzio Melotti2010-01-241-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77733 | ezio.melotti | 2010-01-24 23:47:59 +0200 (Sun, 24 Jan 2010) | 1 line #7269: fix failures in test_bsddb3. Patch by Florent Xicluna. ........
* Merged revisions 76265 via svnmerge fromR. David Murray2009-11-141-2/+7
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76265 | r.david.murray | 2009-11-14 12:43:16 -0500 (Sat, 14 Nov 2009) | 3 lines Turn the bsddb replication startup timeout test into a warning, to improve buildbot stability. ........
* Merged revisions 76214 via svnmerge fromR. David Murray2009-11-111-1/+1
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76214 | r.david.murray | 2009-11-11 13:07:27 -0500 (Wed, 11 Nov 2009) | 5 lines I got the relative magnitudes of the timeout increases reversed, so I'm bumping up the longer test to the 60 seconds I intended to make it. If this doesn't cure the intermittent buildbot timeouts, I'm going to turn that test into a warning rather than a failure. ........
* Merged revisions 76116 via svnmerge fromR. David Murray2009-11-051-2/+2
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76116 | r.david.murray | 2009-11-04 20:50:56 -0500 (Wed, 04 Nov 2009) | 3 lines Increase the timeout in the bsddb3 replication test to allow the test time to complete on slow buildbots. See issue 6462. ........
* Merged revisions 69846 via svnmerge fromJesus Cea2009-07-023-3/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69846 | mark.dickinson | 2009-02-21 21:27:01 +0100 (Sat, 21 Feb 2009) | 2 lines Issue #5341: Fix a variety of spelling errors. ........
* Merged revisions 68978 via svnmerge fromMark Dickinson2009-01-261-1/+1
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r68978 | mark.dickinson | 2009-01-26 21:51:56 +0000 (Mon, 26 Jan 2009) | 3 lines Issue #5073: Fix occasional failure of bsddb/test/test_lock.py. Thanks Hirokazu Yamamoto for the patch. ........
* Bugfix for issue3885 and 'DB.verify()' crash.Jesus Cea2008-09-231-16/+36
| | | | Reviewed by Nick Coghlan.
* On Windows, temporarily disable the bsddb test referenced in bug 3892.Mark Hammond2008-09-181-1/+13
| | | | | We do yell to stderr and the bug is marked as a blocker. Reviewed by barry in #python-dev.
* warnings.catch_warnings() now returns a list or None instead of the customBrett Cannon2008-09-091-3/+3
| | | | | | | | WarningsRecorder object. This makes the API simpler to use as no special object must be learned. Closes issue 3781. Review by Benjamin Peterson.
* Python3.0 bsddb testsuite compatibility improvementsJesus Cea2008-09-031-0/+4
|
* Improve compatibility with Python3.0 testsuiteJesus Cea2008-09-021-0/+2
|
* In Python3.0, "test.test_support" is renamed to "test.support".Jesus Cea2008-09-011-1/+4
|
* Update bsddb code to version 4.7.3pre2. This code shouldJesus Cea2008-08-3121-334/+697
| | | | | | be compatible with Python 3.0, also. http://www.jcea.es/programacion/pybsddb.htm#bsddb3-4.7.3
* Be less strict with replication timeouts (the machineJesus Cea2008-07-291-7/+19
| | | | | can be a bit loaded), and be sure to yield the CPU when waiting.
* Refinements in the bsddb testsuiteJesus Cea2008-07-292-4/+4
|
* bsddb module updated to version 4.7.2devel9.Jesus Cea2008-07-238-98/+378
| | | | | | | | | | | | | 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
* Merged revisions 64368-64369 via svnmerge fromTrent Nelson2008-06-271-1/+1
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/tnelson-trunk-bsddb-47-upgrade ........ r64368 | trent.nelson | 2008-06-17 23:13:44 -0500 (Tue, 17 Jun 2008) | 1 line Initial commit of work pertaining to switching the Windows build from Berkeley DB 4.4.20 to 4.7.25. Note that I've deprecated the standalone '_bsddb44.vcproj' in lieu of adding the sources in a separate folder to the _bsddb project. This was a conscious decision and actually makes everything far more easier to manage. With this approach, entire test suite passed straight off the bat. Well, almost -- the timeout in bsddb/test/test_replication.py needed bumping up a little -- 2 seconds was too short. 10 seconds seems to be fine for me, but I'll make sure Jesus verifies. More documentation to come once I've been able to test out this approach on the buildbots (hence keeping the changes in a separate branch for now). ........ r64369 | trent.nelson | 2008-06-17 23:19:12 -0500 (Tue, 17 Jun 2008) | 1 line Bump Berkeley DB version from 4.4.20 to 4.7.25. ........
* Better integration between Python testing and bsddb3Jesus Cea2008-05-271-9/+12
|
* * 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-221-1/+1
|
* 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-1323-703/+1193
|
* #2503 make singletons compared with "is" not == or !=Benjamin Peterson2008-03-292-3/+3
| | | | 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.
* 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
|
* cleanup test_dbtables to use mkdtemp. cleanup dbtables to pass txn as aGregory P. Smith2007-10-181-6/+5
| | | | | 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
|
* Fixes http://bugs.python.org/issue1233 - bsddb.dbshelve.DBShelf.appendGregory P. Smith2007-10-121-21/+73
| | | | | was useless due to inverted logic. Also adds a test case for RECNO dbs to test_dbshelve.
* 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.