o
    h                     @   s   d dl Z zd dlZW n ey   dZY nw d dlZd dlm  mZ	 zd dl
ZW n	 ey2   Y nw e jje jj
dd ZdS )    Nc                     sD   t tddd tdD d  fdd} tj| ddd	 d S )
Ni'  c                 S   s   g | ]}t d qS )   )	test_utilrands).0_ r   X/var/www/vscode/kcb/lib/python3.10/site-packages/pyarrow/tests/test_adhoc_memory_leak.py
<listcomp>&   s    z6test_deserialize_pandas_arrow_7956.<locals>.<listcomp>)abc                     s*   t j  } t | }t j| d S )N)paipcserialize_pandas
to_pybytes	py_bufferdeserialize_pandas)df_bytesbufdfr   r   action(   s   
z2test_deserialize_pandas_arrow_7956.<locals>.actioni   d   )	threshold
iterations)pd	DataFramenparangeranger   memory_leak_check)r   r   r   r   "test_deserialize_pandas_arrow_7956"   s
   r    )pytestnumpyr   ImportErrorpyarrowr   pyarrow.tests.utiltestsutilr   pandasr   markmemory_leakr    r   r   r   r   <module>   s    