summaryrefslogtreecommitdiff
path: root/lib/tdb/python/tests
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tdb/python/tests')
-rw-r--r--lib/tdb/python/tests/simple.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tdb/python/tests/simple.py b/lib/tdb/python/tests/simple.py
index c37ef83a61..7e295a8c95 100644
--- a/lib/tdb/python/tests/simple.py
+++ b/lib/tdb/python/tests/simple.py
@@ -33,6 +33,11 @@ class CloseTdbTests(TestCase):
self.tdb.close()
self.tdb.close()
+ # Check that further operations do not crash python
+ self.assertRaises(RuntimeError, lambda: self.tdb.transaction_start())
+
+ self.assertRaises(RuntimeError, lambda: self.tdb["bar"])
+
class InternalTdbTests(TestCase):