FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove print() from test_agg_filter_alpha by iccir · Pull Request #32439 · matplotlib/matplotlib · GitHub

Repository navigation

Remove print() from test_agg_filter_alpha - #32439

Merged
timhoffm merged 2 commits into
matplotlib:mainfrom
iccir:remove-print
Oct 6, 2026
Merged

timhoffm merged 2 commits into
matplotlib:mainfrom
iccir:remove-print

Conversation

iccir commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

PR summary

Remove a print() statement from a test.

AI Disclosure

None used

PR quality check

  • Use an expressive title, e.g. "Fix title font property precedence"
  • [/] New and changed code is tested
  • [/] Plotting related features are demonstrated in an example
  • [/] New features and API changes have release notes
  • [/] Documentation complies with general and docstring guidelines

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Though should that print statement get replaced with a test that the function is called? I think wrapping it in a mock will allow that?

iccir commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

Added! Note that I had to also add an explicit call to ax.figure.canvas.draw() to force it to draw immediately inside the function body (and not after for the @image_comparison).

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks!

story645 added this to the v3.11.3 milestone Oct 5, 2026

Copy link
Copy Markdown
Member

The windows test hung which I think caused the apparent coverage drop. Restarted the windows test, anyone can merge if tests are green.

iccir commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

Coverage is passing now, but the Appveyor build is failing with:
ImportError: Typelib file for namespace 'HarfBuzz', version '0.0' not found

timhoffm commented Oct 6, 2026

Copy link
Copy Markdown
Member

I've seen the import error also on other PRs. It's not related to this PR.

timhoffm merged commit e8eebff into matplotlib:main Oct 6, 2026
45 of 46 checks passed
nillohitroy pushed a commit to nillohitroy/matplotlib that referenced this pull request Oct 7, 2026
* Remove print() from test

* Add mock to ensure manual_alpha called
iccir added a commit that referenced this pull request Oct 7, 2026
…439-on-v3.11.x

Backport PR #32439 on branch v3.11.x (Remove print() from test_agg_filter_alpha)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL