o
    cd                     @   sL   d dl Z ddlmZ d dlmZ G dd deZdd ZG d	d
 d
eZdS )    N   )TestCase)Filec                   @   s   e Zd ZdS )SampleExceptionN)__name__
__module____qualname__ r	   r	   3lib/python3.10/site-packages/h5py/tests/test_h5o.pyr      s    r   c                 C   s   t | | td)Nthrowing exception)printr   )nameobjr	   r	   r
   throwing
   s   
r   c                   @   s   e Zd Zdd ZdS )	TestVisitc                 C   sf   |   }t|d}|jdddd tjtdd |t W d    n1 s(w   Y  |  d S )NwZfoo)d   Zuint8)Zdtyper   )match)	Zmktempr   Zcreate_datasetpytestZraisesr   Z
visititemsr   close)selffnameZfidr	   r	   r
   
test_visit   s   
zTestVisit.test_visitN)r   r   r   r   r	   r	   r	   r
   r      s    r   )	r   commonr   Zh5pyr   	Exceptionr   r   r   r	   r	   r	   r
   <module>   s    