There are some tests for the cases generator in Tools/cases_generator/test_generator.py, but several things are wrong with these:
Let's fix that (in that order).
gh-105540: Fix code generator tests (#105707)
Merge branch 'main' into modulelocals
This should be pretty easy -- just Python code. Especially the next step (removing the pytest dependency in favor of unittest) should be quite doable.
pythongh-105540: Convert `pytest` tests of `cases_generator` to regul…
gh-105540: Convert `pytest` tests of `cases_generator` to regular tes…
gh-105540: Show source files relative to root (#106927)
pythongh-105540: Improve relative paths in `generate_cases.py`
Honestly I think we can close this issue, making the tests comprehensive will just be an ongoing task, it's not a bug.
Activity
gh-105540: Fix code generator tests (#105707)
Merge branch 'main' into modulelocals
gvanrossum commented on Jul 13, 2023
This should be pretty easy -- just Python code. Especially the next step (removing the pytest dependency in favor of unittest) should be quite doable.
pythongh-105540: Convert `pytest` tests of `cases_generator` to regul…
gh-105540: Convert `pytest` tests of `cases_generator` to regular tes…
gh-105540: Show source files relative to root (#106927)
pythongh-105540: Improve relative paths in `generate_cases.py`
gvanrossum commented on Jul 31, 2023
Honestly I think we can close this issue, making the tests comprehensive will just be an ongoing task, it's not a bug.