From: Douglas Bagnall Date: Thu, 11 Oct 2018 00:43:28 +0000 (+1300) Subject: python/tests/dsdb: use correct variable names X-Git-Tag: tdb-1.3.17~1032 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5304ea44c97507822edac2ccf0ec5a49d0692627;p=thirdparty%2Fsamba.git python/tests/dsdb: use correct variable names Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power --- diff --git a/python/samba/tests/dsdb.py b/python/samba/tests/dsdb.py index 9eafb7fd8ef..2432c3cd509 100644 --- a/python/samba/tests/dsdb.py +++ b/python/samba/tests/dsdb.py @@ -468,7 +468,7 @@ class DsdbTests(TestCase): try: self.samdb.modify(msg) if not allow_reference: - sel.fail("No exception should get %s" % msg_exp) + self.fail("No exception should get %s" % msg_exp) except ldb.LdbError as e: if allow_reference: self.fail("Should have not raised an exception: %s" % e) @@ -743,6 +743,6 @@ class DsdbFullScanTests(TestCase): credentials=self.creds, lp=self.lp, options=["disable_full_db_scan_for_self_test:1"]) - except LdbError as err: + except ldb.LdbError as err: estr = err.args[1] self.fail("sam.ldb required a full scan to start up")