Skip to content

Commit

Permalink
Work around h5py is_hdf5
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjala committed Apr 30, 2024
1 parent dbd5246 commit b4cb75f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/hl/test_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ def test_create(self):
self.assertTrue(f.id.id is not None)
self.assertTrue('/' in f)
# should not see id as a file
self.assertFalse(h5py.is_hdf5(f.id.id))
# skip for h5py, since its is_hdf5 implementation expects a path
if h5py.__name__ == "h5pyd":
self.assertFalse(h5py.is_hdf5(f.id.id))
# Check domain's timestamps
if h5py.__name__ == "h5pyd":
# print("modified:", datetime.fromtimestamp(f.modified), f.modified)
Expand Down

0 comments on commit b4cb75f

Please sign in to comment.