-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Use pytest instead of unittest #2446
Labels
Comments
giampaolo
added a commit
that referenced
this issue
Oct 1, 2024
See #2446. This PR: * gets rid of [psutil/tests/runner.py](https://github.com/giampaolo/psutil/blob/622bd442eef704627202282d5805e4b39358b897/psutil/tests/runner.py#L1) (less code to maintain) * use `pytest-xdist` to allow for parallel test execution * get rid of [concurrencytest](https://pypi.org/project/concurrencytest/) dep * update Github and Appveyor CI config * removes 400 lines of code Replacing `self.assert*` APIs will be done in a separate PR.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I recently did this for pyftpdlib giampaolo/pyftpdlib#628.
Reasons:
self.assert*
APIs (easier to read, shorter to type)assert
statements #2453pytest-xdist
extension allows for parallel test execution, so we can get rid of our internal implementation (less code to maintain) - DONE in Use pytest, get rid of test/runner.py #2447pytest
may not be installed, we still want to be able to test psutil installation viapython3 -m psutil.tests
by usingunittest
test runner - DONE in Run tests without pytests #2456.The text was updated successfully, but these errors were encountered: