summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/drs/python/repl_schema.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/torture/drs/python/repl_schema.py b/source4/torture/drs/python/repl_schema.py
index 1d94b0fdec..55e653b824 100644
--- a/source4/torture/drs/python/repl_schema.py
+++ b/source4/torture/drs/python/repl_schema.py
@@ -164,8 +164,10 @@ class DrsReplSchemaTestCase(samba.tests.TestCase):
res_dc2 = self.ldb_dc2.search(base=obj_dn,
scope=SCOPE_BASE,
attrs=["*"])
- except LdbError, (ERR_NO_SUCH_OBJECT, _):
- self.fail("%s doesn't exists on %s" % (obj_dn, self.dnsname_dc2))
+ except LdbError, (enum, estr):
+ if enum == ERR_NO_SUCH_OBJECT:
+ self.fail("%s doesn't exists on %s" % (obj_dn, self.dnsname_dc2))
+ raise
self.assertEquals(len(res_dc2), 1,
"%s doesn't exists on %s" % (obj_dn, self.dnsname_dc2))