Skip to content

Commit 9e16408

Browse files
fix: Add filterwarnings ignore for np.bool8 DeprecationWarning (#2072)
* Add a ignore to filterwarnings to avoid a numpy DeprecationWarning > DeprecationWarning: `np.bool8` is a deprecated alias for `np.bool_`. (Deprecated NumPy 1.24) from TensorFlow's use of numpy. This DeprecationWarning first appeared in numpy v1.24.0rc1, and so this ignore is being added in advance of v1.24.0 as a preventative measure for HEAD of dependencies testing.
1 parent 3d68fc7 commit 9e16408

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ filterwarnings = [
8686
'ignore:divide by zero encountered in (true_)?divide:RuntimeWarning', #FIXME: pytest tests/test_tensor.py::test_pdf_calculations[numpy]
8787
'ignore:[A-Z]+ is deprecated and will be removed in Pillow 10:DeprecationWarning', # keras
8888
'ignore:Call to deprecated create function:DeprecationWarning', # protobuf via tensorflow
89+
'ignore:`np.bool8` is a deprecated alias for `np.bool_`:DeprecationWarning', # numpy via tensorflow
8990
]
9091

9192
[tool.coverage.run]

0 commit comments

Comments
 (0)