diff options
-rwxr-xr-x | source4/lib/ldb/tests/python/api.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/lib/ldb/tests/python/api.py b/source4/lib/ldb/tests/python/api.py index 6c1cb4cac2..17c3172842 100755 --- a/source4/lib/ldb/tests/python/api.py +++ b/source4/lib/ldb/tests/python/api.py @@ -108,9 +108,10 @@ class SimpleLdb(unittest.TestCase): l.delete(m.dn) def test_contains(self): - l = ldb.Ldb(filename()) + name = filename() + l = ldb.Ldb(name) self.assertFalse(ldb.Dn(l, "dc=foo3") in l) - l = ldb.Ldb(filename()) + l = ldb.Ldb(name) m = ldb.Message() m.dn = ldb.Dn(l, "dc=foo3") m["b"] = ["a"] |