Skip to content

Commit ce7498a

Browse files
committed
fix(comment): #1306 (comment)
1 parent a64f8e8 commit ce7498a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/series/arithmetic/test_truediv.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
from tests import (
99
PD_LTE_23,
10-
WINDOWS,
1110
check,
1211
)
1312

@@ -168,12 +167,10 @@ def test_truediv_path(tmp_path: Path) -> None:
168167
fnames = pd.Series(["a.png", "b.gz", "c.txt"])
169168

170169
if PD_LTE_23:
171-
# Bug in 3.0 https://github.com/pandas-dev/pandas/issues/61940
170+
# Bug in 3.0 https://github.com/pandas-dev/pandas/issues/61940 (pyarrow.lib.ArrowInvalid)
172171
check(assert_type(fnames / tmp_path, pd.Series), pd.Series, Path)
173172
check(assert_type(tmp_path / fnames, pd.Series), pd.Series, Path)
174173

175-
if PD_LTE_23 or not WINDOWS:
176-
# pyarrow.lib.ArrowInvalid: Could not convert WindowsPath('...') with type WindowsPath: did not recognize Python value type when inferring an Arrow data type
177174
check(assert_type(fnames.truediv(tmp_path), pd.Series), pd.Series, Path)
178175
check(assert_type(fnames.div(tmp_path), pd.Series), pd.Series, Path)
179176

0 commit comments

Comments
 (0)