Skip to content

Commit 27f6fc8

Browse files
committed
fix test for reference type check
1 parent d7adde7 commit 27f6fc8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/unit/hdf5dbTest.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,12 @@ def testCreateVlenReferenceAttribute(self):
799799
base_type = attr_type["base"]
800800
# todo - this should be H5T_REFERENCE, not H5T_OPAQUE
801801
# See h5py issue: https://github.com/h5py/h5py/issues/553
802-
self.assertEqual(base_type["class"], "H5T_OPAQUE")
802+
import h5py
803+
# test based on h5py version until we change install requirements
804+
if h5py.version.version_tuple[1] >= 6:
805+
self.assertEqual(base_type["class"], "H5T_REFERENCE")
806+
else:
807+
self.assertEqual(base_type["class"], "H5T_OPAQUE")
803808

804809
def testCreateReferenceListAttribute(self):
805810
filepath = getFile('empty.h5', 'createreferencelistattribute.h5')

0 commit comments

Comments
 (0)