Fix tests whithout lmdb
authorMathieu Parent <math.parent@gmail.com>
Wed, 3 Oct 2018 20:18:55 +0000 (20:18 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 26 Mar 2019 03:03:23 +0000 (03:03 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13630

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/tests/python/api.py

index 0c4e269239b9d415ed910ebc4044a4e19772a4ac..1a7695d315b50cb91cc888bb2975d937a2ee0fe9 100755 (executable)
@@ -740,7 +740,7 @@ class SimpleLdbNoLmdb(LdbBaseTest):
             self.fail("Should have failed on missing LMDB")
         except ldb.LdbError as err:
             enum = err.args[0]
-            self.assertEqual(enum, ldb.LDB_ERR_OTHER)
+            self.assertEqual(enum, ldb.ERR_OTHER)
 
 
 class SearchTests(LdbBaseTest):