Skip to content

Detect parallel h5py #576

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Detect parallel h5py #576

wants to merge 3 commits into from

Conversation

bgrant
Copy link
Contributor

@bgrant bgrant commented Aug 11, 2014

Here I add a function import_parallel_h5py to testing.py that tries to import a parallel-enabled h5py, and if one isn't available, it raises unittest.SkipTest. This replaces most of our uses of import_or_skip (but not all) and calls import_or_skip under the hood.

Unfortunately, @kwmsmith, it seems to make our paralleltests hang in my testing environment that actually has a parallel build of h5py. It skips tests correctly when there is no h5py or when there is a serial h5py installed.

Not ready for merge.

bgrant added 3 commits August 11, 2014 15:31
It skips if h5py isn't available OR if it is available but doesn't support parallel operations.
@bgrant bgrant added easy and removed easy labels Aug 11, 2014
@bgrant bgrant added this to the 0.6 milestone Aug 11, 2014
@bgrant
Copy link
Contributor Author

bgrant commented Aug 11, 2014

Hm. It seems to reliably hang on Travis.

@kwmsmith
Copy link
Contributor

Looks like it's hanging at the parallel test part -- any idea why?

@bgrant
Copy link
Contributor Author

bgrant commented Oct 16, 2015

Moving to 0.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants