
    g                         d dl Z 	 d dlZd dlZd dlmc mZ	 	 d dl
Ze j                  j                  e j                  j                  d               Zy# e$ r dZY Qw xY w# e$ r Y Jw xY w)    Nc            	          t        j                  t        j                  d      t	        d      D  cg c]  } t        j                  d       c} d      fd}t        j                  |dd       y c c} w )Ni'     )abc                      t         j                  j                        j                         } t        j                  |       }t         j                  j                  |       y )N)paipcserialize_pandas
to_pybytes	py_bufferdeserialize_pandas)df_bytesbufdfs     Y/var/www/openai/venv/lib/python3.12/site-packages/pyarrow/tests/test_adhoc_memory_leak.pyactionz2test_deserialize_pandas_arrow_7956.<locals>.action(   s@    66**2.99;ll8$
!!#&    i   d   )	threshold
iterations)pd	DataFramenparangerange	test_utilrandsmemory_leak_check)_r   r   s     @r   "test_deserialize_pandas_arrow_7956r    "   sc     
BIIe,9>uFAY__Q/FH 
IB' 'cJ Gs   A5
)pytestnumpyr   ImportErrorpyarrowr   pyarrow.tests.utiltestsutilr   pandasr   markmemory_leakr     r   r   <module>r,      s   $   & &	
 
K  
K  	B  		s"   A A AAA'&A'