Skip to content

Commit 24f12f3

Browse files
committed
run test as part of docker build
1 parent 65a2e81 commit 24f12f3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Docker/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ MAINTAINER John Readey <[email protected]>
33
RUN cd /usr/local/src ; \
44
git clone https://github.com/HDFGroup/hdf5-json.git ; \
55
cd hdf5-json ; \
6-
python setup.py install
6+
python setup.py install ; \
7+
python testall.py

test/unit/hdf5dbTest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,8 @@ def testWriteCommittedCompoundType(self):
946946
# this is fixed in h5py v. 2.6.0 - check the version until 2.6.0 becomes
947947
# available via pip and anaconda.
948948
import h5py
949-
if h5py.version.version_tuple[1] >= 6:
949+
# fake error for testing
950+
if h5py.version.version_tuple[1] >= 7:
950951
field_classes = ('H5T_INTEGER', 'H5T_FLOAT', 'H5T_STRING', 'H5T_OPAQUE')
951952
else:
952953
field_classes = ('H5T_INTEGER', 'H5T_FLOAT', 'H5T_STRING', 'H5T_OPAQUE')

0 commit comments

Comments
 (0)