Skip to content

Commit 70e0f2a

Browse files
committed
1 parent a30ffb2 commit 70e0f2a

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

tests/indexes/arithmetic/test_truediv.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from typing_extensions import assert_type
88

99
from tests import (
10-
PD_LTE_23,
1110
TYPE_CHECKING_INVALID_USAGE,
1211
check,
1312
)
@@ -123,10 +122,8 @@ def test_truediv_path(tmp_path: Path) -> None:
123122
Also GH 682."""
124123
fnames = pd.Index(["a.png", "b.gz", "c.txt"])
125124

126-
if PD_LTE_23:
127-
# Bug in 3.0 https://github.com/pandas-dev/pandas/issues/61940 (pyarrow.lib.ArrowInvalid)
128-
check(assert_type(fnames / tmp_path, pd.Index), pd.Index, Path)
129-
check(assert_type(tmp_path / fnames, pd.Index), pd.Index, Path)
125+
check(assert_type(fnames / tmp_path, pd.Index), pd.Index, Path)
126+
check(assert_type(tmp_path / fnames, pd.Index), pd.Index, Path)
130127

131128

132129
def test_truediv_str_py_str(left_i: pd.Index) -> None:

tests/series/arithmetic/test_truediv.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from typing_extensions import assert_type
88

99
from tests import (
10-
PD_LTE_23,
1110
TYPE_CHECKING_INVALID_USAGE,
1211
check,
1312
)
@@ -257,16 +256,14 @@ def test_truediv_path(tmp_path: Path) -> None:
257256
Also GH 682."""
258257
fnames = pd.Series(["a.png", "b.gz", "c.txt"])
259258

260-
if PD_LTE_23:
261-
# Bug in 3.0 https://github.com/pandas-dev/pandas/issues/61940 (pyarrow.lib.ArrowInvalid)
262-
check(assert_type(fnames / tmp_path, pd.Series), pd.Series, Path)
263-
check(assert_type(tmp_path / fnames, pd.Series), pd.Series, Path)
259+
check(assert_type(fnames / tmp_path, pd.Series), pd.Series, Path)
260+
check(assert_type(tmp_path / fnames, pd.Series), pd.Series, Path)
264261

265-
check(assert_type(fnames.truediv(tmp_path), pd.Series), pd.Series, Path)
266-
check(assert_type(fnames.div(tmp_path), pd.Series), pd.Series, Path)
262+
check(assert_type(fnames.truediv(tmp_path), pd.Series), pd.Series, Path)
263+
check(assert_type(fnames.div(tmp_path), pd.Series), pd.Series, Path)
267264

268-
check(assert_type(fnames.rtruediv(tmp_path), pd.Series), pd.Series, Path)
269-
check(assert_type(fnames.rdiv(tmp_path), pd.Series), pd.Series, Path)
265+
check(assert_type(fnames.rtruediv(tmp_path), pd.Series), pd.Series, Path)
266+
check(assert_type(fnames.rdiv(tmp_path), pd.Series), pd.Series, Path)
270267

271268

272269
def test_truediv_str_py_str(left_i: pd.Series) -> None:

0 commit comments

Comments
 (0)