-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Are tests failing on Windows? #21905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Have you tried rebuilding the cython extensions? Windows tests look good on appveyor. Can you post the output of |
I build pandas using Output of pd.show_versions() INSTALLED VERSIONScommit: 365eac4 pandas: 0.21.0.dev+2313.g365eac4d2 |
That should work for building the extensions, provided that you've done it since pulling the commit you've linked to as the potential offender. Looking over The other thing that looks a little weird is "pandas: 0.21.0.dev+2313.g365eac4d2", but I think that's just a superficial tags issue and unrelated to the failure; doing a cc @jbrockmendel @chris-b1 : would appreciate your thoughts on this |
I solved the tag issue by doing Tried cloning pandas into a new directory. Same failure... |
This is a 32 bit bug, which we don't have CI for, so looks like some of the casting from #21826 was necessary |
That's plausible. Should I revert I undo that part of the cleanup? |
This also fails in the Linux nigthlies: MacPython/pandas-wheels#32 / https://travis-ci.org/MacPython/pandas-wheels/builds/404071029?utm_source=github_status&utm_medium=notification |
@topper-123 hoping to get your help to debug this. Can you edit the line:
to
and see if that fixes the problem? |
Still a problem: ――――――――――――――――――――――― test_fy5253qtr_onoffset_nearest ―――――――――――――――――――――――
def test_fy5253qtr_onoffset_nearest():
# GH#19036
ts = Timestamp('1985-09-02 23:57:46.232550356-0300',
tz='Atlantic/Bermuda')
offset = FY5253Quarter(n=3, qtr_with_extra_week=1, startingMonth=2,
variation="nearest", weekday=0)
> fast = offset.onOffset(ts)
pandas\tests\tseries\offsets\test_fiscal.py:645:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pandas\tseries\offsets.py:2018: in onOffset
qtr_lens = self.get_weeks(dt)
pandas\tseries\offsets.py:1992: in get_weeks
year_has_extra_week = self.year_has_extra_week(dt)
pandas\tseries\offsets.py:2002: in year_has_extra_week
norm = Timestamp(dt).normalize().tz_localize(None)
pandas\_libs\tslibs\timestamps.pyx:1095: in pandas._libs.tslibs.timestamps.Timestamp.normalize
normalized_value = normalize_i8_timestamps(
pandas\_libs\tslibs\conversion.pyx:1094: in pandas._libs.tslibs.conversion.normalize_i8_timestamps
result = _normalize_local(stamps, tz)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> pos = trans.searchsorted(stamps, side='right') - <int64_t>1
E ValueError: Buffer dtype mismatch, expected 'int64_t' but got 'int'
pandas\_libs\tslibs\conversion.pyx:1150: ValueError EDIT: BTW, I changed conversion.pyx:1150, a search for |
Before #21826 only one of the One more thing I'd like to try if you're up for it:
|
@jbrockmendel - you have So you could change the type of pos to Py_ssize_t, which is what you want anyways, since it is an indexer. |
@topper-123 can you try with #21923 and see if that fixes it? |
Running the tests on windows fail:
Several tests fail.
By going back in commit history until the tests pass, it looks like this is caused by #21826.
The text was updated successfully, but these errors were encountered: