Skip to content

Commit c8ce542

Browse files
Ignore BLAS warning in tests
1 parent 9f8b80c commit c8ce542

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

pyproject.toml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -100,21 +100,24 @@ addopts = [
100100
]
101101

102102
filterwarnings =[
103-
"error",
104-
# Raised by arviz when the model_builder class adds non-standard group names to InferenceData
105-
"ignore::UserWarning:arviz.data.inference_data",
103+
"error",
104+
# Raised by arviz when the model_builder class adds non-standard group names to InferenceData
105+
"ignore::UserWarning:arviz.data.inference_data",
106106

107-
# bool8, find_common_type, cumproduct, and product had deprecation warnings added in numpy 1.25
108-
'ignore:.*(\b(pkg_resources\.declare_namespace|np\.bool8|np\.find_common_type|cumproduct|product)\b).*:DeprecationWarning',
107+
# bool8, find_common_type, cumproduct, and product had deprecation warnings added in numpy 1.25
108+
'ignore:.*(\b(pkg_resources\.declare_namespace|np\.bool8|np\.find_common_type|cumproduct|product)\b).*:DeprecationWarning',
109109

110-
# JAX issues an over-eager warning if os.fork() is called when the JAX module is loaded, even if JAX isn't being used
111-
'ignore:os\.fork\(\) was called\.:RuntimeWarning',
110+
# JAX issues an over-eager warning if os.fork() is called when the JAX module is loaded, even if JAX isn't being used
111+
'ignore:os\.fork\(\) was called\.:RuntimeWarning',
112112

113-
# Warning coming from blackjax
114-
'ignore:jax\.tree_map is deprecated:DeprecationWarning',
113+
# Warning coming from blackjax
114+
'ignore:jax\.tree_map is deprecated:DeprecationWarning',
115115

116-
# PyMC uses numpy.core functions, which emits an warning as of numpy>2.0
117-
'ignore:numpy\.core\.numeric is deprecated:DeprecationWarning',
116+
# PyMC uses numpy.core functions, which emits an warning as of numpy>2.0
117+
'ignore:numpy\.core\.numeric is deprecated:DeprecationWarning',
118+
119+
# Silence warning emitted by pytensor when BLAS is not available
120+
"ignore:Found Intel OpenMP \\('libiomp'\\) and LLVM OpenMP \\('libomp'\\):RuntimeWarning"
118121
]
119122

120123
[tool.coverage.report]

0 commit comments

Comments
 (0)