o
    i"                     @   s   d dl Zd dlZd dlmZ d dlmZ ejdej	j
d ddddfedd	fg d	fejgd	fd
dejgd	fd
d
ejgdfd
dejejgdfgdd Zdd ZdS )    N)Series)!create_series_with_explicit_dtypezdata, expected
   i  )sizeFTfoobarc                 C   s   t | td}|j|u sJ d S )N)dtype_if_empty)r   object	is_unique)dataexpectedser r   e/var/www/edux/Edux_v2/venv/lib/python3.10/site-packages/pandas/tests/series/methods/test_is_unique.pytest_is_unique   s   r   c                    s   G dd d |     fddtdD }t|ttdd}W d    n1 s+w   Y  |j |  }t|jdks@J d S )Nc                   @   s   e Zd ZdddZdd ZdS )z$test_is_unique_class_ne.<locals>.FooreturnNc                 S   s
   || _ d S )N)_value)selfvalr   r   r   __init__   s   
z-test_is_unique_class_ne.<locals>.Foo.__init__c                 S   s   t d)NzNEQ not supported)	Exception)r   otherr   r   r   __ne__    s   z+test_is_unique_class_ne.<locals>.Foo.__ne__)r   N)__name__
__module____qualname__r   r   r   r   r   r   Foo   s    
r   c                    s   g | ]} |qS r   r   ).0ir   r   r   
<listcomp>$   s    z+test_is_unique_class_ne.<locals>.<listcomp>   )indexr   )disabledranger   listr
   
readouterrlenerr)capsyslir   capturedr   r   r   test_is_unique_class_ne   s   
r,   )numpynppytestpandasr   pandas.core.constructionr   markparametrizerandomrandintarangenanr   r,   r   r   r   r   <module>   s"    

