Repository navigation
Commit 22f75a5
committed
Do not pin the pandas-resolved dtype of a missing str index
The dtype test asserted that _missing_index(2, "str").dtype == "str",
which only holds on pandas 3: before that "str" resolves to object, so
all twelve CI test jobs failed on this one assertion while the other
three new tests passed.
Ask pandas which dtype it resolves to instead of pinning either
convention, so the test states the contract (a missing index keeps the
dtype a non-missing index of that dtype would have) on both.
Verified on pandas 2.1.4 and pandas 3.0.5: the focused test is RED with
the old assertion and GREEN with this one, and test_multi.py is 177
passed / 31 skipped / 6 xfailed / 2 xpassed on pandas 2.1.4 and 177
passed / 31 skipped / 8 xfailed on 3.0.5.
Assisted-by: Hermes Agent (deepseek-v4-flash-vision-exp)1 parent 6a3f544 commit 22f75a5
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2581 | 2581 | | |
2582 | 2582 | | |
2583 | 2583 | | |
2584 | | - | |
| 2584 | + | |
| 2585 | + | |
| 2586 | + | |
2585 | 2587 | | |
2586 | 2588 | | |
2587 | 2589 | | |
| |||
0 commit comments