Skip to content
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

Run tests without pytests #2456

Merged
merged 20 commits into from
Oct 6, 2024
Merged

Run tests without pytests #2456

merged 20 commits into from
Oct 6, 2024

Conversation

giampaolo
Copy link
Owner

@giampaolo giampaolo commented Oct 6, 2024

This is the third (and last) step of #2446. With this we want to be able to run unittests even if pytest is not installed, via:

python3 -m psutil.tests

This is useful for production environments that don't have pytest installed, but still want to be able to test psutil installation.

@github-actions github-actions bot added the tests label Oct 6, 2024
@giampaolo giampaolo merged commit 4649a88 into master Oct 6, 2024
18 of 20 checks passed
@giampaolo giampaolo deleted the fake-pytest branch October 6, 2024 08:41
giampaolo added a commit that referenced this pull request Oct 15, 2024
)

This is the 4th (and hopefully last) step of #2446. Similarly to #2456, we emulate @pytest.mark.skipif via unittest if pytest is not installed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant