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

Run tests with h5py in workflow #193

Merged
merged 12 commits into from
May 1, 2024

Conversation

mattjala
Copy link
Contributor

@mattjala mattjala commented Apr 30, 2024

A few changes to the tests are necessary for this workflow to pass:

  • test_index_emptylist is expected to fail because h5pyd returns an empty array with no shape, and numpy returns an empty array with the shape (0, 3). Now, when h5pyd is returning an empty selection, it sets the 'shape' equal to what would result from executing the same (empty) selection on an ndarray.
  • test_ellipsis and test_tuple under TestScalarArray are expected to raise an error due to H5T_ARRAY only being partially implemented in HSDS. For now, if h5py is being used, these tests manually raise an error to be consistent.
  • Avoid using is_hdf5 on an ID when using h5py, since the h5py implementation of that function expects a string path, not an integer ID.
  • Some expected errors have a different type

@mattjala mattjala requested a review from jreadey April 30, 2024 17:12
@mattjala mattjala self-assigned this Apr 30, 2024
@mattjala mattjala changed the title Make empty selection shape agree with numpy Run tests with h5py in workflow Apr 30, 2024
Copy link
Member

@jreadey jreadey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm other than the comments

env:
HS_USERNAME: test_user1
HS_PASSWORD: test
TEST2_USERNAME: test_user1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be test_user2

HS_USERNAME: test_user1
HS_PASSWORD: test
TEST2_USERNAME: test_user1
TEST2_PASSWORD: test
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here too

@mattjala mattjala merged commit 9c844b5 into HDFGroup:master May 1, 2024
10 checks passed
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.

2 participants