summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2008-05-15 04:56:18 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2008-05-15 04:56:18 (GMT)
commit00ca01e7c34a6ae791ec9d113e630b34b4982399 (patch)
tree13a5d552ccd4c7ae0bee267710ad22fd607692b0 /Lib/bsddb
parent9b73f6f0d96817c99a94e5522f9a4faed3d13c25 (diff)
downloadcpython-00ca01e7c34a6ae791ec9d113e630b34b4982399.zip
cpython-00ca01e7c34a6ae791ec9d113e630b34b4982399.tar.gz
cpython-00ca01e7c34a6ae791ec9d113e630b34b4982399.tar.bz2
disable the crashing test. I will also file a bug. This crash does
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)
Diffstat (limited to 'Lib/bsddb')
-rw-r--r--Lib/bsddb/test/test_lock.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/bsddb/test/test_lock.py b/Lib/bsddb/test/test_lock.py
index 9b9ce7b..eee12a4 100644
--- a/Lib/bsddb/test/test_lock.py
+++ b/Lib/bsddb/test/test_lock.py
@@ -97,7 +97,11 @@ class LockingTestCase(unittest.TestCase):
for t in threads:
t.join()
- def test03_lock_timeout(self):
+ def _DISABLED_test03_lock_timeout(self):
+ # Disabled as this test crashes the python interpreter built in
+ # debug mode with:
+ # Fatal Python error: UNREF invalid object
+ # the error occurs as marked below.
self.env.set_timeout(0, db.DB_SET_LOCK_TIMEOUT)
self.env.set_timeout(0, db.DB_SET_TXN_TIMEOUT)
self.env.set_timeout(123456, db.DB_SET_LOCK_TIMEOUT)
@@ -124,6 +128,8 @@ class LockingTestCase(unittest.TestCase):
self.assertNotEqual(anID, anID2)
lock = self.env.lock_get(anID, "shared lock", db.DB_LOCK_WRITE)
start_time=time.time()
+ # FIXME: I see the UNREF crash as the interpreter trys to exit
+ # from this call to lock_get.
self.assertRaises(db.DBLockNotGrantedError,
self.env.lock_get,anID2, "shared lock", db.DB_LOCK_READ)
end_time=time.time()