Skip to content

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.
@github-actions
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
x612skm pushed a commit to x612skm/mypy-dev that referenced this pull request Feb 24, 2025
…his (python#18476)

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.
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.

3 participants