Skip to content

Unify test directory handling #11864

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

Merged
merged 1 commit into from
May 5, 2024
Merged

Unify test directory handling #11864

merged 1 commit into from
May 5, 2024

Conversation

srittau
Copy link
Collaborator

@srittau srittau commented May 5, 2024

Previously, handling of test directories (@tests and test_cases) was
distributed over multiple files and redundant. This unifies the handling
in the utils module. This also fixes some instances where "package"
was used instead of "distribution". And in a few instances paths were
joined by using a / in a string, which is incompatible with Windows.

Also move runtests.py from scripts to tests. This is required so that
we can import utils, but it's also arguably the better fit. The only
mention of the script is actually in the tests/README.md file.

Helps with #11762.

Previously, handling of test directories (`@tests` and `test_cases`) was
distributed over multiple files and redundant. This unifies the handling
in the `utils` module. This also fixes some instances where "package"
was used instead of "distribution". And in a few instances paths were
joined by using a `/` in a string, which is incompatible with Windows.

Also move `runtests.py` from `scripts` to `tests`. This is required so that
we can import `utils`, but it's also arguably the better fit. The only
mention of the script is actually in the `tests/README.md` file.

Helps with python#11762.
@srittau srittau merged commit e436dfe into python:main May 5, 2024
58 checks passed
@srittau srittau deleted the tests-helpers branch May 5, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants