Skip to content

Conversation

@QuLogic
Copy link
Member

@QuLogic QuLogic commented Jan 30, 2025

PR summary

Note that a few tests require skips, as they check for docstrings.

This PR also fixes testing with LTO disabled (it previously just set a variable in the matrix and did nothing with it.)

Fixes #10312

PR checklist

@QuLogic QuLogic added topic: testing CI: testing CI configuration and testing labels Jan 30, 2025
@QuLogic
Copy link
Member Author

QuLogic commented Jan 30, 2025

It seems to have timed out; I suspect that it's one of the backend tests that I don't have the library for, which isn't running asserts and just continuing on without cancelling.

@QuLogic
Copy link
Member Author

QuLogic commented Feb 11, 2025

I made some changes to ensure that asserts work in subprocesses, but that doesn't appear to have fixed it yet.

Also, skip a few tests that only work with docstrings enabled.

Fixes matplotlib#10312
The jobs matrix doesn't set any environment variables, so the
without-LTO job just set `CFLAGS` in the matrix, which was never used
for anything as intended.
This means that:
1. assertion failures look a little better
2. assertions actually happen if optimization is enabled
It doesn't seem to support it, and is not really updated by upstream.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI: testing CI configuration and testing topic: testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tests fail when PYTHONOPTIMIZE is set

1 participant