
    bMh                         d dl mZ d dlmZ d dlZd dlZd dlZd dlmZ  ej	        d          Z
de
j        _        de
j        _        de
j        _        d Ze	 dd
eeddf         fd            Zd ZdS )    )	Generator)contextmanagerN)HDFStoretables   c                 Z    	 | |                                   d S d S # t          $ r Y d S w xY w)N)closeOSError)stores    _/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pandas/tests/io/pytables/common.py
safe_closer      sH    KKMMMMM    s    
**aFreturnc              #      K   t          j                    5 }t          j        ||           }t	          |||||          5 }|V  d d d            n# 1 swxY w Y   d d d            d S # 1 swxY w Y   d S )N)mode	complevelcomplib
fletcher32)tempfileTemporaryDirectorypathlibPathr   )pathr   r   r   r   
tmpdirnametmp_pathr   s           r   ensure_clean_storer      s      
	$	&	& 	*<
D11!
 
 
 	 KKK	 	 	 	 	 	 	 	 	 	 	 	 	 	 		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	s5   *A) AA)A	A)A	A))A-0A-c                 b    	 |                      |           dS # t          t          f$ r Y dS w xY w)z
    For tests using tables, try removing the table to be sure there is
    no content from previous tests using the same table name.
    N)remove
ValueErrorKeyError)r   keys     r   _maybe_remover"   *   sF    
S!   s    ..)r   NNF)collections.abcr   
contextlibr   r   r   pytestpandas.io.pytablesr   importorskipr   
parametersMAX_NUMEXPR_THREADSMAX_BLOSC_THREADSMAX_THREADSr   r   r"        r   <module>r.      s    % % % % % % % % % % % %    ' ' ' ' ' '		X	&	&()  %&'  # !     =B xt#$       r-   