Skip to content

TST: Remove redundant font tests#30513

Merged
QuLogic merged 1 commit intomatplotlib:text-overhaulfrom
QuLogic:redundant-font-tests
Mar 26, 2026
Merged

TST: Remove redundant font tests#30513
QuLogic merged 1 commit intomatplotlib:text-overhaulfrom
QuLogic:redundant-font-tests

Conversation

@QuLogic
Copy link
Copy Markdown
Member

@QuLogic QuLogic commented Sep 4, 2025

PR summary

I extracted this out of #30512 because it was causing issues with the pre-loading of test images. I may update this as/when I find more redundant tests.

  • test_backend_ps::test_type3_font is covered by test_backend_ps::test_multi_font_type3
  • test_text::test_pdf_chars_beyond_bmp is covered by test_backend_pdf::test_multi_font_type3 and test_backend_pdf::test_multi_font_type42
  • test_text::test_pdf_kerning is covered by test_backend_pdf::test_kerning
  • test_text::test_pdf_type42_kerning is covered by test_backend_pdf::test_kerning

PR checklist

- `test_backend_ps::test_type3_font` is covered by
  `test_backend_ps::test_multi_font_type3`
- `test_text::test_pdf_chars_beyond_bmp` is covered by
  `test_backend_pdf::test_multi_font_type3` and
  `test_backend_pdf::test_multi_font_type42`
- `test_text::test_pdf_kerning` is covered by
  `test_backend_pdf::test_kerning`
- `test_text::test_pdf_type42_kerning` is covered by
  `test_backend_pdf::test_kerning`
@QuLogic QuLogic force-pushed the redundant-font-tests branch from b7f089c to 9d23373 Compare March 2, 2026 15:49
@QuLogic QuLogic marked this pull request as ready for review March 2, 2026 15:49
@QuLogic QuLogic moved this from Waiting for other PR to Ready for Review in Font and text overhaul Mar 2, 2026
@QuLogic
Copy link
Copy Markdown
Member Author

QuLogic commented Mar 2, 2026

Unfortunately, the pre-loading of images doesn't handle this side having deleted the image, but I think this PR can be confirmed to be okay by hand.

@QuLogic
Copy link
Copy Markdown
Member Author

QuLogic commented Mar 6, 2026

Since this may or may not cause conflicts with the preload, going to wait to merge this one until the last minute.

@QuLogic
Copy link
Copy Markdown
Member Author

QuLogic commented Mar 26, 2026

I ran some tests locally and there shouldn't be any conflicts with the image preloading, so long as it's rebased on top of this, so I'll merge it now.

@QuLogic QuLogic merged commit 3a9a111 into matplotlib:text-overhaul Mar 26, 2026
21 of 33 checks passed
@github-project-automation github-project-automation bot moved this from Ready for Review to Done in Font and text overhaul Mar 26, 2026
@QuLogic QuLogic deleted the redundant-font-tests branch March 26, 2026 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants