Skip to content
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

Python 2.7 doctest failures on 64-bit Windows #812

Closed
matthew-brett opened this issue Dec 16, 2015 · 3 comments
Closed

Python 2.7 doctest failures on 64-bit Windows #812

matthew-brett opened this issue Dec 16, 2015 · 3 comments

Comments

@matthew-brett
Copy link
Contributor

Around 7 failures of form:

Failed example:
    data.shape
Expected:
    (58, 58, 24)
Got:
    (58L, 58L, 24L)

See: http://nipy.bic.berkeley.edu/builders/dipy-bdist64-27/builds/9/steps/shell_11/logs/stdio

These are obviously caused by the fact that the values are npy_intp type, a 64-bit integer, which is larger than the standard 32-bit integer on Windows, and therefore gets returned as a Python long integer.

The most obvious fix is to replace stuff like:

>>> data.shape
(58, 58, 24)

With:

>>> data.shape == (58, 58, 24)
True
@omarocegueda
Copy link
Contributor

+1, I can do that if you haven't started yet

@matthew-brett
Copy link
Contributor Author

Thank you - no I haven't started.

@arokem
Copy link
Contributor

arokem commented Jan 11, 2016

closed through #814

@arokem arokem closed this as completed Jan 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants