Open
Description
Please describe the issue and your environment here.
I tried to run tox on my machine and it fails.
Steps to reproduce:
❯ tox -e py38
GLOB sdist-make: /home/jugmac00/Projects/python-ldap/setup.py
py38 inst-nodeps: /home/jugmac00/Projects/python-ldap/.tox/.tmp/package/1/python-ldap-3.3.0.zip
py38 installed: pyasn1==0.4.8,pyasn1-modules==0.2.8,python-ldap @ file:///home/jugmac00/Projects/python-ldap/.tox/.tmp/package/1/python-ldap-3.3.0.zip
py38 run-test-pre: PYTHONHASHSEED='3830792126'
py38 run-test: commands[0] | /home/jugmac00/Projects/python-ldap/.tox/py38/bin/python -bb -Werror -m unittest discover -v -s Tests -p 't_*'
ERROR
ERROR
test_cidict (t_cidict.TestCidict)
test function is_dn() ... ok
test_cidict_data (t_cidict.TestCidict)
test the deprecated data atrtribute ... ok
test_strlist_deprecated (t_cidict.TestCidict) ... ok
ERROR
test_deprecated (t_ldap_asyncsearch.TestLdapAsyncSearch) ... ok
test_assertioncontrol (t_ldap_controls_libldap.TestLibldapControls) ... ok
test_matchedvalues (t_ldap_controls_libldap.TestLibldapControls) ... ok
test_pagedresults_decode (t_ldap_controls_libldap.TestLibldapControls) ... ok
test_pagedresults_encode (t_ldap_controls_libldap.TestLibldapControls) ... ok
test_ppolicy_graceauth (t_ldap_controls_ppolicy.TestControlsPPolicy) ... ok
test_ppolicy_timebefore (t_ldap_controls_ppolicy.TestControlsPPolicy) ... ok
test_create_sss_request_control (t_ldap_controls_sss.TestControlsPPolicy) ... ok
test_dn2str (t_ldap_dn.TestDN)
test function dn2str() ... ok
test_escape_dn_chars (t_ldap_dn.TestDN)
test function escape_dn_chars() ... ok
test_explode_dn (t_ldap_dn.TestDN)
test function explode_dn() ... ok
test_explode_rdn (t_ldap_dn.TestDN)
test function explode_rdn() ... ok
test_is_dn (t_ldap_dn.TestDN)
test function is_dn() ... ok
test_str2dn (t_ldap_dn.TestDN)
test function str2dn() ... ok
test_escape_filter_chars_mode0 (t_ldap_filter.TestDN)
test function escape_filter_chars() with escape_mode=0 ... ok
test_escape_filter_chars_mode1 (t_ldap_filter.TestDN)
test function escape_filter_chars() with escape_mode=1 ... ok
test_escape_filter_chars_mode2 (t_ldap_filter.TestDN)
test function escape_filter_chars() with escape_mode=2 ... ok
test_escape_str (t_ldap_functions.TestFunction)
test function escape_string_tmpl() ... ok
test_ldap_strf_secs (t_ldap_functions.TestFunction)
test function ldap_strf_secs() ... ok
test_ldap_strp_secs (t_ldap_functions.TestFunction)
test function ldap_strp_secs() ... ok
test_addModlist (t_ldap_modlist.TestModlist) ... ok
test_modifyModlist (t_ldap_modlist.TestModlist) ... ok
test_cafile (t_ldap_options.TestGlobalOptions) ... ok
test_client_controls (t_ldap_options.TestGlobalOptions) ... ok
test_invalid (t_ldap_options.TestGlobalOptions) ... ok
test_network_timeout (t_ldap_options.TestGlobalOptions) ... ok
test_readonly (t_ldap_options.TestGlobalOptions) ... ok
test_server_controls (t_ldap_options.TestGlobalOptions) ... ok
test_timeout (t_ldap_options.TestGlobalOptions) ... ok
test_uri (t_ldap_options.TestGlobalOptions) ... ok
ERROR
ERROR
test_attributetype_attrs (t_ldap_schema_subentry.TestAttributes)
Check types and values of an AttributeType object's attributes ... ok
test_empty_attributetype_attrs (t_ldap_schema_subentry.TestAttributes)
Check types and values of attributes of a minimal AttributeType ... ok
test_empty_objectclass_attrs (t_ldap_schema_subentry.TestAttributes)
Check types and values of attributes of a minimal ObjectClass ... ok
test_objectclass_attrs (t_ldap_schema_subentry.TestAttributes)
Check types and values of an ObjectClass object's attributes ... ok
test_subschema_file (t_ldap_schema_subentry.TestSubschemaLDIF) ... ok
test_urlfetch_file (t_ldap_schema_subentry.TestSubschemaUrlfetch) ... ok
ERROR
test_origin_multi_valued (t_ldap_schema_subentry.TestXOrigin) ... ok
test_origin_multi_valued_str (t_ldap_schema_subentry.TestXOrigin)
Check string representation of an attr with multi-value X-ORIGIN ... ok
test_origin_none (t_ldap_schema_subentry.TestXOrigin) ... ok
test_origin_none_str (t_ldap_schema_subentry.TestXOrigin)
Check string representation of an attribute without X-ORIGIN ... ok
test_origin_string (t_ldap_schema_subentry.TestXOrigin) ... ok
test_origin_string_str (t_ldap_schema_subentry.TestXOrigin)
Check string representation of an attr with single-value X-ORIGIN ... ok
test_set_origin_list (t_ldap_schema_subentry.TestXOrigin)
Check that setting X-ORIGIN to a list makes entry unusable ... ok
test_set_origin_str (t_ldap_schema_subentry.TestXOrigin)
Check that setting X-ORIGIN to a string makes entry unusable ... ok
test_set_origin_tuple (t_ldap_schema_subentry.TestXOrigin)
Check that setting X-ORIGIN to a tuple works ... ok
test_basic (t_ldap_schema_tokenizer.TestSplitTokens)
run test cases specified in constant TESTCASES_BASIC ... ok
test_broken (t_ldap_schema_tokenizer.TestSplitTokens) ... ok
test_broken_oid (t_ldap_schema_tokenizer.TestSplitTokens)
run test cases specified in constant TESTCASES_BROKEN_OID ... ok
test_escaped_quotes (t_ldap_schema_tokenizer.TestSplitTokens)
run test cases specified in constant TESTCASES_ESCAPED_QUOTES ... ok
test_utf8 (t_ldap_schema_tokenizer.TestSplitTokens)
run test cases specified in constant TESTCASES_BASIC ... ok
test_syncidset_message (t_ldap_syncrepl.DecodeSyncreplProtoTests)
A syncrepl server may send a sync info message, with a syncIdSet ... ok
ERROR
ERROR
ERROR
ERROR
test_isLDAPUrl (t_ldapurl.TestIsLDAPUrl) ... ok
test_bad_urls (t_ldapurl.TestLDAPUrl) ... expected failure
test_combo (t_ldapurl.TestLDAPUrl) ... ok
test_parse_attrs (t_ldapurl.TestLDAPUrl) ... ok
test_parse_default_attrs (t_ldapurl.TestLDAPUrl) ... ok
test_parse_default_extensions (t_ldapurl.TestLDAPUrl) ... ok
test_parse_default_filter (t_ldapurl.TestLDAPUrl) ... ok
test_parse_default_hostport (t_ldapurl.TestLDAPUrl) ... ok
test_parse_default_scope (t_ldapurl.TestLDAPUrl) ... ok
test_parse_dn (t_ldapurl.TestLDAPUrl) ... ok
test_parse_empty_dn (t_ldapurl.TestLDAPUrl) ... ok
test_parse_extensions (t_ldapurl.TestLDAPUrl) ... ok
test_parse_extensions_5questions (t_ldapurl.TestLDAPUrl) ... ok
test_parse_extensions_novalue (t_ldapurl.TestLDAPUrl) ... ok
test_parse_extensions_nulls (t_ldapurl.TestLDAPUrl) ... ok
test_parse_filter (t_ldapurl.TestLDAPUrl) ... ok
test_parse_hostport (t_ldapurl.TestLDAPUrl) ... ok
test_parse_schemes (t_ldapurl.TestLDAPUrl) ... ok
test_parse_scope (t_ldapurl.TestLDAPUrl) ... ok
test_parse_scope_default (t_ldapurl.TestLDAPUrl) ... ok
test_ldapurl (t_ldapurl.TestParseLDAPUrl) ... ok
test_bad_change_records (t_ldif.TestChangeRecords) ... ok
test_empty (t_ldif.TestChangeRecords) ... ok
test_missing_trailing_dash_separator (t_ldif.TestChangeRecords) ... ok
test_mod_increment (t_ldif.TestChangeRecords) ... ok
test_simple (t_ldif.TestChangeRecords) ... ok
test_weird_empty_lines (t_ldif.TestChangeRecords) ... ok
test_big_binary (t_ldif.TestEntryRecords) ... ok
test_binary (t_ldif.TestEntryRecords) ... ok
test_binary2 (t_ldif.TestEntryRecords) ... ok
test_comments (t_ldif.TestEntryRecords) ... ok
test_empty (t_ldif.TestEntryRecords) ... ok
test_empty_attr_values (t_ldif.TestEntryRecords) ... ok
test_folded (t_ldif.TestEntryRecords) ... ok
test_ignored_attr_types (t_ldif.TestEntryRecords) ... ok
test_max_entries (t_ldif.TestEntryRecords) ... ok
test_missing_trailing_line_separator (t_ldif.TestEntryRecords) ... ok
test_multiple (t_ldif.TestEntryRecords) ... ok
test_multiple_empty_lines (t_ldif.TestEntryRecords)
test malformed LDIF with multiple empty lines ... ok
test_simple (t_ldif.TestEntryRecords) ... ok
test_simple2 (t_ldif.TestEntryRecords) ... ok
test_sorted (t_ldif.TestEntryRecords) ... ok
test_unencoded_unicode (t_ldif.TestEntryRecords) ... ok
test_unicode (t_ldif.TestEntryRecords) ... ok
test_weird_empty_lines (t_ldif.TestEntryRecords) ... ok
test_context_manager (t_slapdobject.TestSlapdObject) ... ERROR
test_context_manager_after_start (t_slapdobject.TestSlapdObject) ... ERROR
======================================================================
ERROR: setUpClass (t_bind.TestBinds)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
cls.server.start()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
self._test_config()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed
======================================================================
ERROR: setUpClass (t_cext.TestLdapCExtension)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jugmac00/Projects/python-ldap/Tests/t_cext.py", line 31, in setUpClass
super(TestLdapCExtension, cls).setUpClass()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
cls.server.start()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
self._test_config()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed
======================================================================
ERROR: setUpClass (t_edit.EditionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jugmac00/Projects/python-ldap/Tests/t_edit.py", line 16, in setUpClass
super(EditionTests, cls).setUpClass()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
cls.server.start()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
self._test_config()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed
======================================================================
ERROR: setUpClass (t_ldap_options.TestLDAPObjectOptions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
cls.server.start()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
self._test_config()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed
======================================================================
ERROR: setUpClass (t_ldap_sasl.TestSasl)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jugmac00/Projects/python-ldap/Tests/t_ldap_sasl.py", line 50, in setUpClass
super(TestSasl, cls).setUpClass()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
cls.server.start()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
self._test_config()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed
======================================================================
ERROR: setUpClass (t_ldap_schema_subentry.TestSubschemaUrlfetchSlapd)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
cls.server.start()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
self._test_config()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed
======================================================================
ERROR: setUpClass (t_ldap_syncrepl.TestSyncrepl)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jugmac00/Projects/python-ldap/Tests/t_ldap_syncrepl.py", line 265, in setUpClass
super(BaseSyncreplTests, cls).setUpClass()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
cls.server.start()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
self._test_config()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed
======================================================================
ERROR: setUpClass (t_ldapobject.Test00_SimpleLDAPObject)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jugmac00/Projects/python-ldap/Tests/t_ldapobject.py", line 75, in setUpClass
super(Test00_SimpleLDAPObject, cls).setUpClass()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
cls.server.start()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
self._test_config()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed
======================================================================
ERROR: setUpClass (t_ldapobject.Test01_ReconnectLDAPObject)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jugmac00/Projects/python-ldap/Tests/t_ldapobject.py", line 75, in setUpClass
super(Test00_SimpleLDAPObject, cls).setUpClass()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
cls.server.start()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
self._test_config()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed
======================================================================
ERROR: setUpClass (t_ldapobject.Test03_SimpleLDAPObjectWithFileno)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jugmac00/Projects/python-ldap/Tests/t_ldapobject.py", line 75, in setUpClass
super(Test00_SimpleLDAPObject, cls).setUpClass()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 608, in setUpClass
cls.server.start()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
self._test_config()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed
======================================================================
ERROR: test_context_manager (t_slapdobject.TestSlapdObject)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jugmac00/Projects/python-ldap/Tests/t_slapdobject.py", line 8, in test_context_manager
with slapdtest.SlapdObject() as server:
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 579, in __enter__
self.start()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
self._test_config()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed
======================================================================
ERROR: test_context_manager_after_start (t_slapdobject.TestSlapdObject)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jugmac00/Projects/python-ldap/Tests/t_slapdobject.py", line 14, in test_context_manager_after_start
server.start()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 458, in start
self._test_config()
File "/home/jugmac00/Projects/python-ldap/.tox/py38/lib/python3.8/site-packages/slapdtest/_slapdtest.py", line 406, in _test_config
raise RuntimeError("configuration test failed")
RuntimeError: configuration test failed
----------------------------------------------------------------------
Ran 101 tests in 1.507s
FAILED (errors=12, expected failures=1)
ERROR: InvocationError for command /home/jugmac00/Projects/python-ldap/.tox/py38/bin/python -bb -Werror -m unittest discover -v -s Tests -p 't_*' (exited with code 1)
____________________________________________________________ summary ____________________________________________________________
ERROR: py38: commands failed
Operating system:
Ubuntu 18.04
Python version:
3.8.5
python-ldap version:
current master = 2e34d75
I am bit suspicious that my tests fail while Travis, which also runs tox via tox-travis works. :-(
I installed the dev dependencies as described in the installation guide:
# apt-get install build-essential python3-dev python2.7-dev \
libldap2-dev libsasl2-dev slapd ldap-utils tox \
lcov valgrind
Any help is appreciated. Thanks!
Metadata
Metadata
Assignees
Labels
No labels