Skip to content

MNT: Remove not so meaningful tests for PDF draw_path_collection#32001

Open
yuzie007 wants to merge 1 commit into
matplotlib:mainfrom
yuzie007:clean-30746
Open

MNT: Remove not so meaningful tests for PDF draw_path_collection#32001
yuzie007 wants to merge 1 commit into
matplotlib:mainfrom
yuzie007:clean-30746

Conversation

@yuzie007

@yuzie007 yuzie007 commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

PR summary

Some of the tests added in #30746 using check_figures_equal may be not so meaningful because they compare the axes constructed in an exactly identical way. For future maintainability, I would suggest removing them. I would like to leave the decision to the maintainers.

I found the above potential issue during preparation of #32000.

AI Disclosure

Unused.

PR checklist

@dstansby dstansby left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me - I checked the blame and these tests don't appear to me to have ever tested for anything meaningful. They were added in 1c3e605, and haven't been changed since.

@jklymak

jklymak commented Jul 6, 2026

Copy link
Copy Markdown
Member

I agree those tests are no-ops. Sorry as I was one of the folks who approved.

However I think they do test things and likely should be image comparison tests?

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