Neal Norwitz
31e88934ed
Remove the files/dirs after closing the DB so the tests work on Windows.
...
Patch from Trent Nelson. Also simplified removing a file by using test_support.
2008-03-05 05:10:48 +00:00
Gregory P. Smith
492e2bfefa
Modify import of test_support so that the code can also be used with a
...
stand alone distribution of bsddb that includes its own small copy of
test_support for the needed functionality on older pythons.
2008-03-02 20:00:53 +00:00
Neal Norwitz
6057b2e645
Create a db_home directory with a unique name so multiple users can
...
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.
2008-02-24 18:47:03 +00:00
Christian Heimes
c5f05e45cf
Patch #2167 from calvin: Remove unused imports
2008-02-23 17:40:11 +00:00
Neal Norwitz
960efe9c2d
Fix exception in tearDown on ppc buildbot. If there's no directory,
...
that shouldn't cause the test to fail. Just like it setUp.
2008-01-26 07:38:03 +00:00
Andrew M. Kuchling
9c3a392321
[Patch #1520904 ] Fix bsddb tests to write to the temp directory instead of the Lib/bsddb/test directory
2007-01-05 15:51:24 +00:00
Tim Peters
0ebf27aad9
BaseThreadedTestCase.setup(): stop special-casing WindowsError.
...
Rev 45964 fiddled with WindowsError, and broke test_bsddb3 on all
the Windows buildbot slaves as a result. This should repair it.
2006-05-11 16:37:42 +00:00
Martin v. Löwis
e93abb7ca6
Handle ERROR_ALREADY_EXISTS.
2006-05-06 20:04:08 +00:00
Tim Peters
95334a5d1e
Purged Berkeley code of references to the long-obsolete whrandom.
2004-08-08 00:54:21 +00:00
Gregory P. Smith
41631e8f66
Adds basic support for BerkeleyDB 4.2.x. Compiles and passes tests; new
...
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.
2003-09-21 00:08:14 +00:00
Barry Warsaw
e3ea281280
readerThread(): Add max_retries to both DeadlockWrap() calls. This
...
may cause some tests to fail but it prevents them from hanging.
2003-07-21 23:01:34 +00:00
Gregory P. Smith
bc6e94a0fa
Wrap the cursor functions with dbutils.DeadlockWrap to deal with the
...
expected DBLockDeadLockErrors.
2003-05-28 08:26:43 +00:00
Barry Warsaw
f71de3e9a0
Everything worked in both the distutils distro and in Python 2.3cvs,
...
so merge from the bsddb-bsddb3-schizo-branch back to the trunk.
2003-01-28 17:20:44 +00:00
Barry Warsaw
a21bdeae51
Cleanups, and conversion of assert to assertEqual()
2003-01-10 19:03:29 +00:00
Barry Warsaw
9a0d779c7d
Port BerkeleyDB 4.1 support from the pybsddb project. bsddb is now at
...
version 4.1.1 and works with up to BerkeleyDB 4.1.25.
2002-12-30 20:53:52 +00:00
Martin v. Löwis
b2c7affbaa
Merge with bsddb3 2002.11.23.10.42.36
2002-11-23 11:26:07 +00:00
Martin v. Löwis
1c6b1a2b4e
Importing test suite from bsddb3 3.4.0 (with modifications).
2002-11-19 17:47:07 +00:00