Skip to content

Remove test support for NumPy < 1.23#9796

Open
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:numpy_warning
Open

Remove test support for NumPy < 1.23#9796
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:numpy_warning

Conversation

@radarhere

@radarhere radarhere commented Jul 17, 2026

Copy link
Copy Markdown
Member

#8326 caught a deprecation warning from NumPy < 1.23, reporting when an exception occurred within __array_interface__ but was not raised.

/Pillow/Tests/test_image_array.py:51: DeprecationWarning: An exception was ignored while fetching the attribute __array_interface__ from an object of type 'JpegImageFile'. With the exception of AttributeError NumPy will always raise this exception in the future. Raise this deprecation warning to see the original exception. (Warning added NumPy 1.21)

Those versions of NumPy are no longer active though, so the warning no longer needs to be caught, leaving just the test for the actual exception.

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.

1 participant