-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
Warn if default numpy.int is 32 bit, or document it. #14029
Copy link
Copy link
Closed
Labels
EasyWell-defined and straightforward way to resolveWell-defined and straightforward way to resolvehelp wanted
Description
Related to #13961 (comment)
The doctests would fail if the default numpy.int is 32 bits long. We should either document this or have a step somewhere for pytest to warn, maybe something along the lines of:
if np.iinfo(np.int).dtype != np.int64:
warn(UserWarning, "Your default numpy int is a 32 bit one, it may be because you are "
"running a 32 bit Python (or more complicated if you're on Windows "
"or Mac. This causes some docstring tests to fail on your machine....")Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
EasyWell-defined and straightforward way to resolveWell-defined and straightforward way to resolvehelp wanted