Skip to content

testcheck: auto-discovery of .test files #13142

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

Conversation

odesenfans
Copy link

Replaced the hardcoded list of test data files by an automatic
discovery system that uses a glob expression on check-*.test.

Fixes #8650.

Replaced the hardcoded list of test data files by an automatic
discovery system that uses a glob expression on `check-*.test`.

Fixes python#8650.
@ilevkivskyi
Copy link
Member

I would propose to move on with #13143, that closes the same issue. Sorry for duplicate work.

Copy link

@thijsmie thijsmie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm new to mypy so this review is purely in python context.

This looks mostly good to me. My only remark is that writing .parent.parent.parent is a bit "smelly" to me, maybe you could move the "root_dir" to the appropriate higher-level module and importing it from there. This makes this a bit more readable.

@odesenfans
Copy link
Author

@ilevkivskyi No worries, I totally agree. The other PR seems more complete.

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.

Auto-discovery of .test files
3 participants