This is an automated email from the git hooks/post-receive script.
vashirov pushed a commit to branch master
in repository 389-ds-base.
commit 56055da0fde15d199d8d2c48e934c44444f42ea6
Author: Viktor Ashirov <vashirov(a)redhat.com>
Date: Tue Mar 7 03:32:11 2017 +0100
Issue 49159 - test_schema_comparewithfiles fails with python-ldap>=2.4.26
Bug Description:
comparewithfiles test from Schema test suite fails on 99user.ldif
with newer versions of python-ldap (2.4.26 and higher).
Fix Description:
Handle exception gracefully.
https://pagure.io/389-ds-base/issue/49159
Reviewed by: mreynolds (Thanks!)
---
dirsrvtests/tests/suites/schema/test_schema.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/dirsrvtests/tests/suites/schema/test_schema.py
b/dirsrvtests/tests/suites/schema/test_schema.py
index 123d6fc..10838f1 100644
--- a/dirsrvtests/tests/suites/schema/test_schema.py
+++ b/dirsrvtests/tests/suites/schema/test_schema.py
@@ -127,11 +127,10 @@ def test_schema_comparewithfiles(topology_st):
ldschema = schemainst.schema.get_subschema()
assert ldschema
for fn in schemainst.schema.list_files():
- fschema = schemainst.schema.file_to_subschema(fn)
- if not fschema:
+ try:
+ fschema = schemainst.schema.file_to_subschema(fn)
+ except:
log.warn("Unable to parse %s as a schema file - skipping" % fn)
- continue
- assert fschema
for oid in fschema.listall(occlass):
se = fschema.get_obj(occlass, oid)
assert se
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.