# This file is part of h5py, a Python interface to the HDF5 library. # # http://www.h5py.org # # Copyright 2008-2013 Andrew Collette and contributors # # License: Standard 3-clause BSD; see "license.txt" for full license terms # and contributor agreement. import numpy as np import h5py from h5py import h5t from .common import TestCase, ut class TestCompound(ut.TestCase): """ Feature: Compound types can be created from Python dtypes """ def test_ref(self): """ Reference types are correctly stored in compound types (issue 144) """ dt = np.dtype([('a', h5py.ref_dtype), ('b', '