Skip to content

testcheck: auto-discovery of .test files#13142

Closed
odesenfans wants to merge 1 commit intopython:masterfrom
odesenfans:od/automated-detection-of-test-files
Closed

testcheck: auto-discovery of .test files#13142
odesenfans wants to merge 1 commit intopython:masterfrom
odesenfans:od/automated-detection-of-test-files

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