o
    _~#g                     @   sr   d dl Z d dlZd dlmZmZ d dlmZ dd Zdd Z	ej
ddd	gd
d Zdd Zdd Zdd ZdS )    N)arraycompatc                  C   s*   ddddd} dd l }| | ksJ d S )Nwarnignore)overdivideinvalidunderr   )numpygeterr)expectednp r   /var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/pandas/tests/util/test_util.pytest_numpy_err_state_is_default   s   r   c                  C   s4   g d} t | }t rd}nd}||ksJ d S )N)aaabbbccczaaa
bbb
ccc
zaaa
bbb
ccc
)tmconvert_rows_list_to_csv_strr   is_platform_windows)	rows_listretr   r   r   r   !test_convert_rows_list_to_csv_str   s   
r   strict_data_filesTFc                 C   s<   t jtdd | d W d    d S 1 sw   Y  d S )NzCould not find filematch
not_a_file)pytestraises
ValueError)datapathr   r   r   test_datapath_missing    s   
"r"   c                 C   s@   d}| | }t jjt jt jtg|R  }||ksJ d S )N)iodatacsvziris.csv)ospathjoindirname__file__)r!   argsresultr   r   r   r   test_datapath&   s   $r-   c                   C   s(   t t td1 sw   Y  d S )Nz4Should not check this error message, so it will pass)r   external_error_raised	TypeErrorr   r   r   r   test_external_error_raised/   s   r0   c                  C   sh   t g ddd} t|  t g ddd} tjtdd t|  W d    d S 1 s-w   Y  d S )N)         Int64)dtype)   r2   r3   zExtensionArray are differentr   )r   r   assert_is_sortedr   r   AssertionError)arrr   r   r   test_is_sorted4   s   
"r:   )r&   r   pandasr   r   pandas._testing_testingr   r   r   markparametrizer"   r-   r0   r:   r   r   r   r   <module>   s    
	