python/samba/tests: fix SamDB dummy replacement
[nivanova/samba-autobuild/.git] / python / samba / tests / __init__.py
index dcee691e6e91f90441cdd39f8d4f0b2e55af68f9..97ce8d1c495be8dad53bd2e9cc2a99a5154f05ec 100644 (file)
@@ -43,7 +43,9 @@ try:
 except ImportError:
     # We are built without samdb support,
     # imitate it so that connect_samdb() can recover
-    SamDB = lambda *x: None
+    def SamDB(*args, **kwargs):
+        return None
+
 import samba.ndr
 import samba.dcerpc.dcerpc
 import samba.dcerpc.epmapper