Skip to content

Unify test directory handling - #11864

Merged
srittau merged 1 commit into
python:mainfrom
srittau:tests-helpers
May 5, 2024
Merged

srittau merged 1 commit into
python:mainfrom
srittau:tests-helpers

Conversation

@srittau

@srittau srittau commented May 5, 2024

Copy link
Copy Markdown
Collaborator

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
@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