Skip to content

Commit

Permalink
Just skip var, std
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Jun 30, 2024
1 parent da8fb41 commit d3ce5d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand All @@ -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:
Expand Down

0 comments on commit d3ce5d2

Please sign in to comment.