running test WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox. running egg_info writing Lib/python_ldap.egg-info/PKG-INFO writing dependency_links to Lib/python_ldap.egg-info/dependency_links.txt writing requirements to Lib/python_ldap.egg-info/requires.txt writing top-level names to Lib/python_ldap.egg-info/top_level.txt reading manifest file 'Lib/python_ldap.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' no previously-included directories found matching 'Doc/.build' adding license file 'LICENCE' writing manifest file 'Lib/python_ldap.egg-info/SOURCES.txt' running build_ext copying build/lib.linux-riscv64-3.10/_ldap.cpython-310-riscv64-linux-gnu.so -> Lib test_context_manager (Tests.t_slapdobject.TestSlapdObject) ... ERROR test_context_manager_after_start (Tests.t_slapdobject.TestSlapdObject) ... ERROR test_bad_change_records (Tests.t_ldif.TestChangeRecords) ... ok test_empty (Tests.t_ldif.TestChangeRecords) ... ok test_missing_trailing_dash_separator (Tests.t_ldif.TestChangeRecords) ... ok test_mod_increment (Tests.t_ldif.TestChangeRecords) ... ok test_simple (Tests.t_ldif.TestChangeRecords) ... ok test_weird_empty_lines (Tests.t_ldif.TestChangeRecords) ... ok test_big_binary (Tests.t_ldif.TestEntryRecords) ... ok test_binary (Tests.t_ldif.TestEntryRecords) ... ok test_binary2 (Tests.t_ldif.TestEntryRecords) ... ok test_comments (Tests.t_ldif.TestEntryRecords) ... ok test_empty (Tests.t_ldif.TestEntryRecords) ... ok test_empty_attr_values (Tests.t_ldif.TestEntryRecords) ... ok test_folded (Tests.t_ldif.TestEntryRecords) ... ok test_ignored_attr_types (Tests.t_ldif.TestEntryRecords) ... ok test_max_entries (Tests.t_ldif.TestEntryRecords) ... ok test_missing_trailing_line_separator (Tests.t_ldif.TestEntryRecords) ... ok test_multiple (Tests.t_ldif.TestEntryRecords) ... ok test_multiple_empty_lines (Tests.t_ldif.TestEntryRecords) test malformed LDIF with multiple empty lines ... ok test_simple (Tests.t_ldif.TestEntryRecords) ... ok test_simple2 (Tests.t_ldif.TestEntryRecords) ... ok test_sorted (Tests.t_ldif.TestEntryRecords) ... ok test_unencoded_unicode (Tests.t_ldif.TestEntryRecords) ... ok test_unicode (Tests.t_ldif.TestEntryRecords) ... ok test_weird_empty_lines (Tests.t_ldif.TestEntryRecords) ... ok test_isLDAPUrl (Tests.t_ldapurl.TestIsLDAPUrl) ... ok test_bad_urls (Tests.t_ldapurl.TestLDAPUrl) ... expected failure test_combo (Tests.t_ldapurl.TestLDAPUrl) ... ok test_parse_attrs (Tests.t_ldapurl.TestLDAPUrl) ... ok test_parse_default_attrs (Tests.t_ldapurl.TestLDAPUrl) ... ok test_parse_default_extensions (Tests.t_ldapurl.TestLDAPUrl) ... ok test_parse_default_filter (Tests.t_ldapurl.TestLDAPUrl) ... ok test_parse_default_hostport (Tests.t_ldapurl.TestLDAPUrl) ... ok test_parse_default_scope (Tests.t_ldapurl.TestLDAPUrl) ... ok test_parse_dn (Tests.t_ldapurl.TestLDAPUrl) ... ok test_parse_empty_dn (Tests.t_ldapurl.TestLDAPUrl) ... ok test_parse_extensions (Tests.t_ldapurl.TestLDAPUrl) ... ok test_parse_extensions_5questions (Tests.t_ldapurl.TestLDAPUrl) ... ok test_parse_extensions_novalue (Tests.t_ldapurl.TestLDAPUrl) ... ok test_parse_extensions_nulls (Tests.t_ldapurl.TestLDAPUrl) ... ok test_parse_filter (Tests.t_ldapurl.TestLDAPUrl) ... ok test_parse_hostport (Tests.t_ldapurl.TestLDAPUrl) ... ok test_parse_schemes (Tests.t_ldapurl.TestLDAPUrl) ... ok test_parse_scope (Tests.t_ldapurl.TestLDAPUrl) ... ok test_parse_scope_default (Tests.t_ldapurl.TestLDAPUrl) ... ok test_ldapurl (Tests.t_ldapurl.TestParseLDAPUrl) ... ok ERROR ERROR ERROR test_syncidset_message (Tests.t_ldap_syncrepl.DecodeSyncreplProtoTests) A syncrepl server may send a sync info message, with a syncIdSet ... ok ERROR test_basic (Tests.t_ldap_schema_tokenizer.TestSplitTokens) run test cases specified in constant TESTCASES_BASIC ... ok test_broken (Tests.t_ldap_schema_tokenizer.TestSplitTokens) ... ok test_broken_oid (Tests.t_ldap_schema_tokenizer.TestSplitTokens) run test cases specified in constant TESTCASES_BROKEN_OID ... ok test_escaped_quotes (Tests.t_ldap_schema_tokenizer.TestSplitTokens) run test cases specified in constant TESTCASES_ESCAPED_QUOTES ... ok test_utf8 (Tests.t_ldap_schema_tokenizer.TestSplitTokens) run test cases specified in constant TESTCASES_BASIC ... ok test_attributetype_attrs (Tests.t_ldap_schema_subentry.TestAttributes) Check types and values of an AttributeType object's attributes ... ok test_empty_attributetype_attrs (Tests.t_ldap_schema_subentry.TestAttributes) Check types and values of attributes of a minimal AttributeType ... ok test_empty_objectclass_attrs (Tests.t_ldap_schema_subentry.TestAttributes) Check types and values of attributes of a minimal ObjectClass ... ok test_objectclass_attrs (Tests.t_ldap_schema_subentry.TestAttributes) Check types and values of an ObjectClass object's attributes ... ok test_subschema_file (Tests.t_ldap_schema_subentry.TestSubschemaLDIF) ... ok test_urlfetch_file (Tests.t_ldap_schema_subentry.TestSubschemaUrlfetch) ... ok ERROR test_origin_multi_valued (Tests.t_ldap_schema_subentry.TestXOrigin) ... ok test_origin_multi_valued_str (Tests.t_ldap_schema_subentry.TestXOrigin) Check string representation of an attr with multi-value X-ORIGIN ... ok test_origin_none (Tests.t_ldap_schema_subentry.TestXOrigin) ... ok test_origin_none_str (Tests.t_ldap_schema_subentry.TestXOrigin) Check string representation of an attribute without X-ORIGIN ... ok test_origin_string (Tests.t_ldap_schema_subentry.TestXOrigin) ... ok test_origin_string_str (Tests.t_ldap_schema_subentry.TestXOrigin) Check string representation of an attr with single-value X-ORIGIN ... ok test_set_origin_list (Tests.t_ldap_schema_subentry.TestXOrigin) Check that setting X-ORIGIN to a list makes entry unusable ... ok test_set_origin_str (Tests.t_ldap_schema_subentry.TestXOrigin) Check that setting X-ORIGIN to a string makes entry unusable ... ok test_set_origin_tuple (Tests.t_ldap_schema_subentry.TestXOrigin) Check that setting X-ORIGIN to a tuple works ... ok ERROR test_cafile (Tests.t_ldap_options.TestGlobalOptions) ... ok test_client_controls (Tests.t_ldap_options.TestGlobalOptions) ... ok test_invalid (Tests.t_ldap_options.TestGlobalOptions) ... ok test_network_timeout (Tests.t_ldap_options.TestGlobalOptions) ... ok test_readonly (Tests.t_ldap_options.TestGlobalOptions) ... ok test_server_controls (Tests.t_ldap_options.TestGlobalOptions) ... ok test_timeout (Tests.t_ldap_options.TestGlobalOptions) ... ok test_uri (Tests.t_ldap_options.TestGlobalOptions) ... ok ERROR test_addModlist (Tests.t_ldap_modlist.TestModlist) ... ok test_modifyModlist (Tests.t_ldap_modlist.TestModlist) ... ok test_escape_str (Tests.t_ldap_functions.TestFunction) test function escape_string_tmpl() ... ok test_ldap_strf_secs (Tests.t_ldap_functions.TestFunction) test function ldap_strf_secs() ... ok test_ldap_strp_secs (Tests.t_ldap_functions.TestFunction) test function ldap_strp_secs() ... ok test_escape_filter_chars_mode0 (Tests.t_ldap_filter.TestDN) test function escape_filter_chars() with escape_mode=0 ... ok test_escape_filter_chars_mode1 (Tests.t_ldap_filter.TestDN) test function escape_filter_chars() with escape_mode=1 ... ok test_escape_filter_chars_mode2 (Tests.t_ldap_filter.TestDN) test function escape_filter_chars() with escape_mode=2 ... ok test_dn2str (Tests.t_ldap_dn.TestDN) test function dn2str() ... ok test_escape_dn_chars (Tests.t_ldap_dn.TestDN) test function escape_dn_chars() ... ok test_explode_dn (Tests.t_ldap_dn.TestDN) test function explode_dn() ... ok test_explode_rdn (Tests.t_ldap_dn.TestDN) test function explode_rdn() ... ok test_is_dn (Tests.t_ldap_dn.TestDN) test function is_dn() ... ok test_str2dn (Tests.t_ldap_dn.TestDN) test function str2dn() ... ok test_create_sss_request_control (Tests.t_ldap_controls_sss.TestControlsPPolicy) ... ok test_pagedresults_encode (Tests.t_ldap_controls_readentry.TestLibldapControls) ... ok test_readentry_decode (Tests.t_ldap_controls_readentry.TestLibldapControls) ... ok test_ppolicy_graceauth (Tests.t_ldap_controls_ppolicy.TestControlsPPolicy) ... ok test_ppolicy_timebefore (Tests.t_ldap_controls_ppolicy.TestControlsPPolicy) ... ok test_assertioncontrol (Tests.t_ldap_controls_libldap.TestLibldapControls) ... ok test_matchedvalues (Tests.t_ldap_controls_libldap.TestLibldapControls) ... ok test_pagedresults_decode (Tests.t_ldap_controls_libldap.TestLibldapControls) ... ok test_pagedresults_encode (Tests.t_ldap_controls_libldap.TestLibldapControls) ... ok test_deprecated (Tests.t_ldap_asyncsearch.TestLdapAsyncSearch) ... ok ERROR test_cidict (Tests.t_cidict.TestCidict) test function is_dn() ... ok test_cidict_data (Tests.t_cidict.TestCidict) test the deprecated data atrtribute ... ok test_copy (Tests.t_cidict.TestCidict) ... ok test_strlist_deprecated (Tests.t_cidict.TestCidict) ... ok ERROR ERROR ====================================================================== ERROR: test_context_manager (Tests.t_slapdobject.TestSlapdObject) ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Tests/t_slapdobject.py", line 8, in test_context_manager with slapdtest.SlapdObject() as server: File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 575, in __enter__ self.start() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 449, in start self._start_slapd() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 423, in _start_slapd raise RuntimeError("slapd exited before opening port") RuntimeError: slapd exited before opening port ====================================================================== ERROR: test_context_manager_after_start (Tests.t_slapdobject.TestSlapdObject) ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Tests/t_slapdobject.py", line 14, in test_context_manager_after_start server.start() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 449, in start self._start_slapd() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 423, in _start_slapd raise RuntimeError("slapd exited before opening port") RuntimeError: slapd exited before opening port ====================================================================== ERROR: setUpClass (Tests.t_ldapobject.Test00_SimpleLDAPObject) ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Tests/t_ldapobject.py", line 93, in setUpClass super().setUpClass() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 604, in setUpClass cls.server.start() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 449, in start self._start_slapd() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 423, in _start_slapd raise RuntimeError("slapd exited before opening port") RuntimeError: slapd exited before opening port ====================================================================== ERROR: setUpClass (Tests.t_ldapobject.Test01_ReconnectLDAPObject) ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Tests/t_ldapobject.py", line 93, in setUpClass super().setUpClass() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 604, in setUpClass cls.server.start() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 449, in start self._start_slapd() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 423, in _start_slapd raise RuntimeError("slapd exited before opening port") RuntimeError: slapd exited before opening port ====================================================================== ERROR: setUpClass (Tests.t_ldapobject.Test03_SimpleLDAPObjectWithFileno) ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Tests/t_ldapobject.py", line 93, in setUpClass super().setUpClass() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 604, in setUpClass cls.server.start() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 449, in start self._start_slapd() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 423, in _start_slapd raise RuntimeError("slapd exited before opening port") RuntimeError: slapd exited before opening port ====================================================================== ERROR: setUpClass (Tests.t_ldap_syncrepl.TestSyncrepl) ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Tests/t_ldap_syncrepl.py", line 281, in setUpClass super().setUpClass() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 604, in setUpClass cls.server.start() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 447, in start self._write_config() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 366, in _write_config self.slapadd(self.gen_config(), ["-n0"]) File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 568, in slapadd self._cli_popen( File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 526, in _cli_popen raise RuntimeError( RuntimeError: ['/usr/bin/slapadd', '-F', '/build/python-ldap/src/python-ldap-python-ldap-3.4.0/python-ldap-test-41911/slapd.d', '-n0'] process failed: b'' b'lt_dlopenext failed: (syncprov) file not found\nolcModuleLoad: value #1: handler exited with 1!\nslapadd: could not add entry dn="cn=module{0},cn=config" (line=14): handler exited with 1\n' ====================================================================== ERROR: setUpClass (Tests.t_ldap_schema_subentry.TestSubschemaUrlfetchSlapd) ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 604, in setUpClass cls.server.start() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 449, in start self._start_slapd() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 423, in _start_slapd raise RuntimeError("slapd exited before opening port") RuntimeError: slapd exited before opening port ====================================================================== ERROR: setUpClass (Tests.t_ldap_sasl.TestSasl) ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Tests/t_ldap_sasl.py", line 49, in setUpClass super().setUpClass() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 604, in setUpClass cls.server.start() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 449, in start self._start_slapd() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 423, in _start_slapd raise RuntimeError("slapd exited before opening port") RuntimeError: slapd exited before opening port ====================================================================== ERROR: setUpClass (Tests.t_ldap_options.TestLDAPObjectOptions) ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 604, in setUpClass cls.server.start() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 449, in start self._start_slapd() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 423, in _start_slapd raise RuntimeError("slapd exited before opening port") RuntimeError: slapd exited before opening port ====================================================================== ERROR: setUpClass (Tests.t_edit.EditionTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Tests/t_edit.py", line 16, in setUpClass super().setUpClass() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 604, in setUpClass cls.server.start() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 449, in start self._start_slapd() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 423, in _start_slapd raise RuntimeError("slapd exited before opening port") RuntimeError: slapd exited before opening port ====================================================================== ERROR: setUpClass (Tests.t_cext.TestLdapCExtension) ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Tests/t_cext.py", line 30, in setUpClass super().setUpClass() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 604, in setUpClass cls.server.start() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 449, in start self._start_slapd() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 423, in _start_slapd raise RuntimeError("slapd exited before opening port") RuntimeError: slapd exited before opening port ====================================================================== ERROR: setUpClass (Tests.t_bind.TestBinds) ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 604, in setUpClass cls.server.start() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 449, in start self._start_slapd() File "/build/python-ldap/src/python-ldap-python-ldap-3.4.0/Lib/slapdtest/_slapdtest.py", line 423, in _start_slapd raise RuntimeError("slapd exited before opening port") RuntimeError: slapd exited before opening port ---------------------------------------------------------------------- Ran 104 tests in 70.734s FAILED (errors=12, expected failures=1) Test failed: error: Test failed: ==> ERROR: A failure occurred in check().  Aborting...