Skip to content

Commit b91d7f0

Browse files
authored
REF: share IntegerArray/FloatingArray extension tests (#54331)
* REF: move bits of IntegerArray/FloatingArray tests to masked_shared * REF: combine Floating/Integer tests * REF: move masked_shared back into test_integer * REF: test_integer.py -> test_masked_numeric.py * REF: change silent early return to pytest.skip
1 parent 206eb02 commit b91d7f0

File tree

5 files changed

+392
-577
lines changed

5 files changed

+392
-577
lines changed

pandas/tests/extension/masked_shared.py

-158
This file was deleted.

pandas/tests/extension/test_boolean.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def check_reduce_frame(self, ser: pd.Series, op_name: str, skipna: bool):
382382

383383
if op_name in ["count", "kurt", "sem"]:
384384
assert not hasattr(arr, op_name)
385-
return
385+
pytest.skip(f"{op_name} not an array method")
386386

387387
if op_name in ["mean", "median", "var", "std", "skew"]:
388388
cmp_dtype = "Float64"

pandas/tests/extension/test_floating.py

-198
This file was deleted.

0 commit comments

Comments
 (0)