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

[mypyc] Improve access to generated C on test failures and document this #18476

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Jan 15, 2025

Now the generated C files for the first mypyc run test failure in a pytest session will be copied to the .mypyc_test_output directory, and this will be indicated in the test output. This is a convenience feature to help in the common scenario where all test failures have the same root cause, so any single output is sufficient for debugging.

Document this and --mypyc-showc, which allows showing generated C for every test failure. The latter is too verbose to be enabled by default.

Now the generated C files for the first mypyc run test failure in a
pytest session will be copied to the `.mypyc_test_output` directory,
and this will be indicated in the test output. This is a convenience
feature to help in the common scenario where all test failures have the
same root cause, so any single output is sufficient for debugging.

Document this and `--mypyc-showc`, which allows showing generated C
for every test failure. The latter is too verbose to be enabled by
default.
Copy link
Contributor

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

@JukkaL JukkaL merged commit a8ab85d into master Jan 15, 2025
19 checks passed
@JukkaL JukkaL deleted the mypyc-test-output branch January 15, 2025 16:57
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