-
Notifications
You must be signed in to change notification settings - Fork 126
Tox does not test the installed extension module #326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Milestone
Comments
tiran
added a commit
to tiran/python-ldap
that referenced
this issue
May 27, 2020
setup.py test is deprecated and causes issues with testing our code. There are cases where the wrong shared library is picked up. The ``unittest discover`` approach avoids building the extension twice. python-ldap should move to pytest eventually. Fixes: python-ldap#326 Signed-off-by: Christian Heimes <cheimes@redhat.com>
tiran
added a commit
to tiran/python-ldap
that referenced
this issue
May 27, 2020
setup.py test is deprecated and causes issues with testing our code. There are cases where the wrong shared library is picked up. The ``unittest discover`` approach avoids building the extension twice. python-ldap should move to pytest eventually. Fixes: python-ldap#326 Signed-off-by: Christian Heimes <cheimes@redhat.com>
tiran
added a commit
to tiran/python-ldap
that referenced
this issue
May 27, 2020
setup.py test is deprecated and causes issues with testing our code. There are cases where the wrong shared library is picked up. The ``unittest discover`` approach avoids building the extension twice. python-ldap should move to pytest eventually. Fixes: python-ldap#326 Signed-off-by: Christian Heimes <cheimes@redhat.com>
tiran
added a commit
to tiran/python-ldap
that referenced
this issue
May 27, 2020
setup.py test is deprecated and causes issues with testing our code. There are cases where the wrong shared library is picked up. The ``unittest discover`` approach avoids building the extension twice. python-ldap should move to pytest eventually. Fixes: python-ldap#326 Signed-off-by: Christian Heimes <cheimes@redhat.com>
tiran
added a commit
to tiran/python-ldap
that referenced
this issue
May 29, 2020
setup.py test is deprecated and causes issues with testing our code. There are cases where the wrong shared library is picked up. The ``unittest discover`` approach avoids building the extension twice. python-ldap should move to pytest eventually. Fixes: python-ldap#326 Signed-off-by: Christian Heimes <cheimes@redhat.com>
tiran
added a commit
to tiran/python-ldap
that referenced
this issue
May 29, 2020
setup.py test is deprecated and causes issues with testing our code. There are cases where the wrong shared library is picked up. The ``unittest discover`` approach avoids building the extension twice. Install coverage < 5.0 to work around a problem with sqlite. python-ldap should move to pytest eventually. Fixes: python-ldap#326 Signed-off-by: Christian Heimes <cheimes@redhat.com>
tiran
added a commit
to tiran/python-ldap
that referenced
this issue
Jun 5, 2020
setup.py test is deprecated and causes issues with testing our code. There are cases where the wrong shared library is picked up. The ``unittest discover`` approach avoids building the extension twice. Install coverage < 5.0 to work around a problem with sqlite. python-ldap should move to pytest eventually. Fixes: python-ldap#326 Signed-off-by: Christian Heimes <cheimes@redhat.com>
tiran
added a commit
to tiran/python-ldap
that referenced
this issue
Jun 5, 2020
setup.py test is deprecated and causes issues with testing our code. There are cases where the wrong shared library is picked up. The ``unittest discover`` approach avoids building the extension twice. Install coverage < 5.0 to work around a problem with sqlite. python-ldap should move to pytest eventually. Fixes: python-ldap#326 Signed-off-by: Christian Heimes <cheimes@redhat.com>
encukou
pushed a commit
that referenced
this issue
Jun 5, 2020
setup.py test is deprecated and causes issues with testing our code. There are cases where the wrong shared library is picked up. The ``unittest discover`` approach avoids building the extension twice. python-ldap should move to pytest eventually. #335 Fixes: #326 Signed-off-by: Christian Heimes <cheimes@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running tests with tox, this happens:
setup.py test
and that builds the extension module again, testing the module from local build dir instead of the installed oneAdding this to a test file:
yields
.../python-ldap/Lib/_ldap.cpython-38-x86_64-linux-gnu.so
instead of.../.tox/py38/lib/python3.8/site-packages/_ldap.cpython-38-x86_64-linux-gnu.so
This is problematic for at least 3 reasons:
Note 1: Removing the
clean
call fromsetup.py clean --all test
is not enough to solve this issue.Note 2: The
setup.py test
generates this:Please consider calling the test runner directly from tox.ini to solve this issue.
The text was updated successfully, but these errors were encountered: