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

Improve error reporting when test raises an exception #193

Merged
merged 3 commits into from Oct 24, 2023

Conversation

ConorMacBride
Copy link
Member

When a test function raises an exception or does not return a figure, the failure is not reported in the HTML summary. This PR makes a fallback result be logged before calling the test function, so it will appear in the HTML summary in case an exception is raised.

This PR also fixes a bug where, when in hybrid mode, a missing baseline image from a remote URL was not being recorded in the status report. This change makes the code process a baseline download failure similar to how it processes a missing local baseline file.

This fixes a bug where, when in hybrid mode, a missing baseline image was not being recorded in the status report. This change makes the code process a baseline download failure similar to how it processes a missing local baseline file.
Copy link
Collaborator

@astrofrog astrofrog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops sorry for dropping the ball on this, this looks good to me!

@astrofrog astrofrog merged commit 68cbbab into matplotlib:main Oct 24, 2023
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants