From d3ce5d226f374c6c458d5fd4320c44cdfe7dadcf Mon Sep 17 00:00:00 2001 From: Deepak Cherian Date: Sat, 29 Jun 2024 19:55:18 -0600 Subject: [PATCH] Just skip var, std --- tests/test_properties.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_properties.py b/tests/test_properties.py index 55e14e5a..6f591016 100644 --- a/tests/test_properties.py +++ b/tests/test_properties.py @@ -14,6 +14,7 @@ NON_NUMPY_FUNCS = ["first", "last", "nanfirst", "nanlast", "count", "any", "all"] + list( SCIPY_STATS_FUNCS ) +SKIPPED_FUNCS = ["var", "std", "nanvar", "nanstd"] def supported_dtypes() -> st.SearchStrategy[np.dtype]: @@ -31,7 +32,9 @@ def supported_dtypes() -> st.SearchStrategy[np.dtype]: # TODO: stop excluding everything but U array_dtype_st = supported_dtypes().filter(lambda x: x.kind not in "cmMU") by_dtype_st = supported_dtypes() -func_st = st.sampled_from([f for f in ALL_FUNCS if f not in NON_NUMPY_FUNCS]) +func_st = st.sampled_from( + [f for f in ALL_FUNCS if f not in NON_NUMPY_FUNCS and f not in SKIPPED_FUNCS] +) def not_overflowing_array(array) -> bool: