summaryrefslogtreecommitdiff
path: root/lib/tdb/python/tests/simple.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tdb/python/tests/simple.py')
-rw-r--r--lib/tdb/python/tests/simple.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/tdb/python/tests/simple.py b/lib/tdb/python/tests/simple.py
index 5db824753b..258a486f91 100644
--- a/lib/tdb/python/tests/simple.py
+++ b/lib/tdb/python/tests/simple.py
@@ -28,6 +28,14 @@ class CloseTdbTests(TestCase):
self.tdb.close()
+class InternalTdbTests(TestCase):
+ def test_repr(self):
+ self.tdb = tdb.Tdb("whatever", tdb_flags=tdb.INTERNAL)
+
+ # repr used to crash on internal db
+ self.assertEquals(repr(self.tdb), "Tdb('<internal>')")
+
+
class SimpleTdbTests(TestCase):
def setUp(self):