3
½ìœ]@  ã               @   sH   d Z ddlmZ ddlZddlmZ ddlmZmZ G dd„ deƒZ	dS )	z(
Tests that deprecations work correctly
é    )Úabsolute_importN)ÚH5pyDeprecationWarningé   )ÚutÚTestCasec               @   s   e Zd Zdd„ ZdS )ÚTestDeprecationsc          	   C   s(   d}| j t|ƒ�}tjj}W d Q R X d S )NzmThe h5py.highlevel module is deprecated, code should import directly from h5py, e.g. 'from h5py import File'.)ZassertWarnsRegexr   Úh5pyZ	highlevelÚFile)ÚselfZwarning_messageÚwarningr	   © r   ú;/tmp/pip-build-pcqn41bp/h5py/h5py/tests/test_deprecation.pyÚtest_highlevel_access   s    z&TestDeprecations.test_highlevel_accessN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r      s   r   )
Ú__doc__Ú
__future__r   r   Zh5py.h5py_warningsr   Úcommonr   r   r   r   r   r   r   Ú<module>   s
   