Repository navigation
Suppress tifffile DeprecationWarning in test_plugin_deprecation_on_imread - #8138
Merged
stefanv merged 3 commits intoApr 29, 2026
Merged
Conversation
…read tifffile raises "DeprecationWarning: Setting the shape on a NumPy array has been deprecated in NumPy 2.5". Suppress it until tifffile > 2026.4.11 fixes the issue upstream.
Contributor
|
Reviews (1): Last reviewed commit: "Suppress tifffile DeprecationWarning in ..." | Re-trigger Greptile |
Contributor
|
Reviews (2): Last reviewed commit: "address greptile review" | Re-trigger Greptile |
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Contributor
|
Reviews (3): Last reviewed commit: "Update tests/skimage/io/test_io.py" | Re-trigger Greptile |
Member
|
This is a better fix than mine. Please just add a note in TODO.txt so we remember to remove. |
Contributor
Author
That seems redundant, since the test itself will go away as part of the removal of the |
Member
|
Yes, you're right of course! |
stefanv
approved these changes
Apr 29, 2026
matthew-brett
added a commit
that referenced
this pull request
May 12, 2026
* origin/main: (85 commits) Drop Python 3.11 Support (#8153) undo change to benchmark workflow address review Update pyodide CI test to match the pattern used by numpy (#8140) Update .github/workflows/_build_linux_for_python_x.yaml Update .github/workflows/_test_linux_for_python_x.yaml Suppress tifffile DeprecationWarning in test_plugin_deprecation_on_imread (#8138) fix yaml fix yaml Update .github/workflows/test-linux.yaml Update .github/workflows/_test_linux_for_python_x.yaml Update .github/workflows/test-linux.yaml Update .github/workflows/test-linux.yaml Move tests back to doc build Fill out .PHONY targets Apply suggestions from code review Remove unused imports (apply commit hooks) Improve inserted docstring note of `deprecated_func` (#8095) address review Update doc/source/index.rst ...
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #8135
tifffileraisesDeprecationWarning: Setting the shape on a NumPy array has been deprecated in NumPy 2.5duringio.imreadcalls on TIFF files. This causestest_plugin_deprecation_on_imreadto fail because the test'spytest.warns(FutureWarning)context sees an unexpected warning.This PR wraps the
io.imreadcall in an additionalpytest.warns(DeprecationWarning)context to suppress it until tifffile > 2026.4.11 is released with a fix.