U
    c"                     @   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  )sizeFTZfoobarc                 C   s   t | td}|j|kstd S )N)Zdtype_if_empty)r   object	is_uniqueAssertionError)dataexpectedser r   N/tmp/pip-unpacked-wheel-g7fro6k3/pandas/tests/series/methods/test_is_unique.pytest_is_unique   s    r   c              	      sp   G dd d |   0  fddtdD }t|ttdd}W 5 Q R X |j |  }t|jdksltd S )Nc                   @   s"   e Zd ZddddZdd ZdS )z$test_is_unique_class_ne.<locals>.FooN)returnc                 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d S )NzNEQ not supported)	Exception)r   otherr   r   r   __ne__    s    z+test_is_unique_class_ne.<locals>.Foo.__ne__)__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   Z
readouterrlenerrr	   )Zcapsyslir   Zcapturedr   r   r   test_is_unique_class_ne   s    
r(   )ZnumpynpZpytestZpandasr   Zpandas.core.constructionr   markZparametrizerandomrandintZarangenanr   r(   r   r   r   r   <module>   s    

