Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 1c036bf

Browse files
loosen floordiv dtype assert
1 parent a5231d2 commit 1c036bf

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

tests/system/small/test_series.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,8 @@ def test_series_int_int_operators_scalar(
10311031
bf_result = maybe_reversed_op(scalars_df["int64_col"], other_scalar).to_pandas()
10321032
pd_result = maybe_reversed_op(scalars_pandas_df["int64_col"], other_scalar)
10331033

1034-
assert_series_equal(pd_result, bf_result)
1034+
# don't check dtype, as pandas is a bit unstable here across versions, esp floordiv
1035+
assert_series_equal(pd_result, bf_result, check_dtype=False)
10351036

10361037

10371038
def test_series_pow_scalar(scalars_dfs):

tests/unit/test_series_polars.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,8 @@ def test_series_int_int_operators_scalar(
10361036
bf_result = maybe_reversed_op(scalars_df["int64_col"], other_scalar).to_pandas()
10371037
pd_result = maybe_reversed_op(scalars_pandas_df["int64_col"], other_scalar)
10381038

1039-
assert_series_equal(pd_result, bf_result)
1039+
# don't check dtype, as pandas is a bit unstable here across versions, esp floordiv
1040+
assert_series_equal(pd_result, bf_result, check_dtype=False)
10401041

10411042

10421043
def test_series_pow_scalar(scalars_dfs):

0 commit comments

Comments
 (0)