Skip to content

Run tests without pytests - #2456

Merged
giampaolo merged 20 commits into
masterfrom
fake-pytest
Oct 6, 2024
Merged

Run tests without pytests#2456
giampaolo merged 20 commits into
masterfrom
fake-pytest

Conversation

@giampaolo

@giampaolo giampaolo commented Oct 6, 2024

Copy link
Copy Markdown
Owner

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 component : tests/ - the suite itself, not a bug it happens to catch label Oct 6, 2024
@giampaolo
giampaolo merged commit 4649a88 into master Oct 6, 2024
@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.
@giampaolo giampaolo added the enhancement type label Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement type tests component : tests/ - the suite itself, not a bug it happens to catch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant