[python-ldap] how to run tests

Petr Spacek pspacek at redhat.com
Wed Apr 20 06:38:33 EDT 2016


Hello,

is there some documentation about running tests in Tests/ subdirectory?

I tried "python setup.py test" but it prints following text and does nothing:

> defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
> extra_compile_args: -g
> extra_objects:
> include_dirs: /usr/include/sasl /usr/include
> library_dirs: /usr/lib /usr/lib64
> libs: ldap_r
> running test

How do I know it does nothing?

I've changed an assert in Tests/t_search.py:test_search_subtree() and it did
not fail despite my sabotage.


Apparently somebody else tried this too and failed:
https://bugzilla.redhat.com/show_bug.cgi?id=1157426


So, what is the correct way of executing tests?

Thank you!

-- 
Petr Spacek  @  Red Hat


More information about the python-ldap mailing list