Skip to content

Skip PILImage tests on Qt5 #1274

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

Merged
merged 1 commit into from
May 15, 2025
Merged

Skip PILImage tests on Qt5 #1274

merged 1 commit into from
May 15, 2025

Conversation

mdickinson
Copy link
Member

@mdickinson mdickinson commented May 15, 2025

PIL removed support for Qt 5 in python-pillow/Pillow#8159. This PR skips the TestPILImage tests on Qt 5.

Related: #1255

@mdickinson mdickinson requested a review from Copilot May 15, 2025 13:34
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR skips the TestPILImage tests when running on Qt 5 since Pillow no longer supports it.

  • Introduces a conditional import of is_qt5 based on the current toolkit (“qt” or “qt4”).
  • Adds a unittest.skipIf decorator to bypass tests when using Qt5.

@mdickinson
Copy link
Member Author

Merging after self-review.

@mdickinson mdickinson merged commit 98925f5 into main May 15, 2025
19 of 31 checks passed
@mdickinson mdickinson deleted the fix/dont-test-pil-image-on-qt5 branch May 15, 2025 13:35
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.

1 participant