|
7 | 7 | from typing_extensions import assert_type |
8 | 8 |
|
9 | 9 | from tests import ( |
10 | | - PD_LTE_23, |
11 | 10 | TYPE_CHECKING_INVALID_USAGE, |
12 | 11 | check, |
13 | 12 | ) |
@@ -257,16 +256,14 @@ def test_truediv_path(tmp_path: Path) -> None: |
257 | 256 | Also GH 682.""" |
258 | 257 | fnames = pd.Series(["a.png", "b.gz", "c.txt"]) |
259 | 258 |
|
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) |
264 | 261 |
|
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) |
267 | 264 |
|
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) |
270 | 267 |
|
271 | 268 |
|
272 | 269 | def test_truediv_str_py_str(left_i: pd.Series) -> None: |
|
0 commit comments