gL iddlmZddlmZddlZddlZddlZddlmZejdZ de j_ de j_ de j_dZe d deeddffd Zd Zy) ) Generator)contextmanagerN)HDFStoretablescJ ||jyy#t$rYywxYw)N)closeOSError)stores e/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/pandas/tests/io/pytables/common.py safe_closer s-   KKM     s  ""returnc#Ktj5}tj||}t |||||5}|ddddddy#1swYxYw#1swYyxYww)N)mode complevelcomplib fletcher32)tempfileTemporaryDirectorypathlibPathr)pathrrrr tmpdirnametmp_pathr s r ensure_clean_storersu  $ $ & *<< D1  !    K       s3A,'A AA  A,A A  A)%A,cR |j|y#ttf$rYywxYw)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 ValueErrorKeyError)r keys r _maybe_remover!*s*   S  !   s &&)aNNF)collections.abcr contextlibrrrpytestpandas.io.pytablesr importorskipr parametersMAX_NUMEXPR_THREADSMAX_BLOSC_THREADS MAX_THREADSr rr!r r.s%% '   X &()%&'# ! =B xt#$   r-