Skip to content

Conversation

@wyattscarpenter
Copy link
Contributor

Due to the way I wrote this feature, foolishly generalizing too narrowly from the CONTRIBUTING.md example, you actually could only run testcheck files this way. Luckily, the fix is as simple as not specifying some extra stuff! Since the test file name is in whatever string -k checks against.

@github-actions
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

…vidually when asked to

Due to the way I wrote this feature, generalizing too narrowly from the CONTRIBUTING.md example, you actually could only run testcheck files this way. Luckily, the fix is as simple as not specifying some extra stuff! Since the test file name is in whatever string -k checks against.
Comment on lines 160 to 162
+ " interpreted as individual test names / substring expressions"
+ " (or, if they end in .test, individual test files)"
+ " (which can end in .test, to specify individual test files)"
+ " and this script will try to run them."
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might be easier to just say it's passed onto pytest?

Copy link
Contributor Author

@wyattscarpenter wyattscarpenter Dec 16, 2025

Choose a reason for hiding this comment

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

That would be easier, but I wouldn't regard it as explanatory enough. I'd like to briefly explain to the user of runtests.py the important info for them to know, like this; instead of just, say, pointing them to https://docs.pytest.org/en/stable/how-to/usage.html#select-tests (which is correct information about what happens).

Figuring out this specific implication is a service we can provide to the reader.

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