# 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. from __future__ import absolute_import import sys import numpy as np from six import PY2, text_type import h5py from h5py import h5t from h5py.h5py_warnings import H5pyDeprecationWarning 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) """ ref = h5py.special_dtype(ref=h5py.Reference) dt = np.dtype([('a', ref), ('b', '