summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/test
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2006-06-08 05:38:11 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2006-06-08 05:38:11 (GMT)
commitdda291c079e6c8e074c99df1bfef52936d68fa1b (patch)
treef6dab1b00036d1627feefa8531eed71d16517333 /Lib/bsddb/test
parentff7d991a07f21a0a368f422efcf17b27c363e1d2 (diff)
downloadcpython-dda291c079e6c8e074c99df1bfef52936d68fa1b.zip
cpython-dda291c079e6c8e074c99df1bfef52936d68fa1b.tar.gz
cpython-dda291c079e6c8e074c99df1bfef52936d68fa1b.tar.bz2
* Turn the deadlock situation described in SF bug #775414 into a
DBDeadLockError exception. * add the test case for my previous dbtables commit.
Diffstat (limited to 'Lib/bsddb/test')
-rw-r--r--Lib/bsddb/test/test_dbtables.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/bsddb/test/test_dbtables.py b/Lib/bsddb/test/test_dbtables.py
index 1128a5a..26e3d36 100644
--- a/Lib/bsddb/test/test_dbtables.py
+++ b/Lib/bsddb/test/test_dbtables.py
@@ -339,6 +339,16 @@ class TableDBTestCase(unittest.TestCase):
conditions={'Name': dbtables.LikeCond('%')},
mappings={'Access': increment_access})
+ try:
+ self.tdb.Modify(tabname,
+ conditions={'Name': dbtables.LikeCond('%')},
+ mappings={'Access': 'What is your quest?'})
+ except TypeError:
+ # success, the string value in mappings isn't callable
+ pass
+ else:
+ raise RuntimeError, "why was TypeError not raised for bad callable?"
+
# Delete key in select conditions
values = self.tdb.Select(
tabname, None,