-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
cases_generator tests aren't run by CI, and are broken #105540
Comments
gvanrossum
added a commit
that referenced
this issue
Jun 12, 2023
This involves expanding PEEK, POKE and JUMPBY macros, and removing super and register tests (those features no longer exist).
carljm
added a commit
to carljm/cpython
that referenced
this issue
Jun 12, 2023
* main: pythongh-105540: Fix code generator tests (python#105707) pythongh-105375: Explicitly initialise all {Pickler,Unpickler}Object fields (python#105686) pythongh-105331: Change `asyncio.sleep` to raise ``ValueError` for nan (python#105641) Remove support for legacy bytecode instructions (python#105705)
This should be pretty easy -- just Python code. Especially the next step (removing the pytest dependency in favor of unittest) should be quite doable. |
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Jul 13, 2023
gvanrossum
pushed a commit
that referenced
this issue
Jul 16, 2023
gvanrossum
added a commit
that referenced
this issue
Jul 20, 2023
This restores a corner case: when the generator is run with working directory set to Tools/cases_generator, the source filenames listed in the generated provenance header should be relative to the repo root directory.
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Jul 21, 2023
Honestly I think we can close this issue, making the tests comprehensive will just be an ongoing task, it's not a bug. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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).
Linked PRs
pytest
tests ofcases_generator
to regular tests #106713generate_cases.py
#106942The text was updated successfully, but these errors were encountered: