-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Tests autodiscovery replacing hardcoded file list #13143
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
@ilevkivskyi The checks are all green, I think we're all good to merge it now 🙂 |
Since #13138 silently broke many of our tests, I thought I'd double check this as well. Tests for Python 3.10 on 6f93fc1 (with this PR)
Tests for Python 3.10 on b6d525d (without this PR)
Any idea what 2 tests we lost? |
cc @evemorgen |
I'll look into that later today |
@hauntsaninja Yeah, that's right, it looks the like two tests have been lost for any reason. I'll post a PR with a fix shortly. > diff test-310-pr.log test-310-prev.log
5272a5273,5274
> <DataDrivenTestCase testLiteralSemanalBasicAssignment>
> <DataDrivenTestCase testLiteralSemanalInFunction>
10311a10314
10879c10882
< ======================== 10537 tests collected in 0.46s ========================
---
> ======================== 10539 tests collected in 0.42s ======================== |
@hauntsaninja - #13175 this PR reintroduces missing tests |
Description
This PR hopefully resolves #8650.
The main change is the
find_test_files
helper function that looks for files matching the pattern in the unit tests directory. It has been used in the following test files for autodiscovery:testcheck.py
testdeps.py
testfinegrained.py
testparse.py
testsemanal.py
I've also updated the readme.
Test Plan
This is a question for maintainers - does this helper function needs unit tests and if so, where should they live? I haven't found
testhelpers.py
🙂