-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
0.9.1 test failures on big endian machines #2318
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
the first should probably be skipped on foreign endian machines, or the input data swapped before trying frombuffer the second can be reproduced on little endian with:
|
the problem is arr.view(np.int64) in cast_to_nanoseconds
|
The first test has a comment saying it should be removed when 2.5 is no longer supported (which has already happend). The second test creates data specifically in little endian, regardless of the base endianess. I think it might be the test @juliantaylor, does the following raise an error on your test system? from pandas import *
dates = [ (datetime(2012, 9, 9, 0, 0),
datetime(2012, 9, 8, 15, 10))]
arr = np.array(dates,
dtype=[('Date', 'M8[us]'), ('Forecasting', 'M8[us]')])
df = DataFrame(arr)
assert(df['Date'][0]== dates[0][0]) |
I agree its probably more likely a problem of the test than the code. unfortunately I don't have direct access to a big endian machine, but your code is essentially what happens in x86 were the tests succeed. |
#2359 needs testing. |
see
https://launchpadlibrarian.net/123637321/buildlog_ubuntu-raring-powerpc.pandas_0.9.1-1ubuntu1_FAILEDTOBUILD.txt.gz
https://buildd.debian.org/status/package.php?p=pandas&suite=experimental
The text was updated successfully, but these errors were encountered: