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

Skip tests that use numpy.float128 type if it not available #754

Merged
merged 2 commits into from Jun 9, 2022

Conversation

jeremysanders
Copy link
Contributor

The numpy.float128 is not present on some platforms (e.g. i386).
To match the C++ type "long double", numpy.longdouble should be
used instead.

Fixes bug #753

@HDembinski
Copy link
Member

@jeremysanders Thank you for this patch! I think the correct approach is to skip the test instead on platforms where the type is not supported, see my comment on the issue.

@HDembinski
Copy link
Member

Is it enough to check hasattr(numpy, "float128")?

jeremysanders and others added 2 commits June 9, 2022 17:08
The numpy.float128 is not present on some platforms (e.g. i386).
To match the C++ type "long double", numpy.longdouble should be
used instead.
@HDembinski HDembinski changed the title Change numpy.float128 type to numpy.longdouble. Skip tests that use numpy.float128 type if it not available Jun 9, 2022
@HDembinski HDembinski merged commit 538f1a1 into scikit-hep:develop Jun 9, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants