Skip to content
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

Closed
3 of 4 tasks
gvanrossum opened this issue Jun 9, 2023 · 2 comments
Closed
3 of 4 tasks

cases_generator tests aren't run by CI, and are broken #105540

gvanrossum opened this issue Jun 9, 2023 · 2 comments
Labels
easy type-bug An unexpected behavior, bug, or error

Comments

@gvanrossum
Copy link
Member

gvanrossum commented Jun 9, 2023

There are some tests for the cases generator in Tools/cases_generator/test_generator.py, but several things are wrong with these:

  • They are currently broken
  • They depend on pytest
  • They aren't run in CI
  • They are incomplete

Let's fix that (in that order).

Linked PRs

@gvanrossum gvanrossum added the type-bug An unexpected behavior, bug, or error label Jun 9, 2023
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)
@gvanrossum
Copy link
Member Author

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 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
@gvanrossum
Copy link
Member Author

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
Labels
easy type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant