o
    g[                     @   sZ   d dl Z d dlZd dlZd dlmZ ejdg ddd Zdd Z	d	d
 Z
dd ZdS )    N)_apiztarget,test_shape))N)      )Nr   )r   )r   )r      ))r      )r   	   ))Nr   N)r   r   r   c                 C   sl   dt |  dtd|  }t|}tjt|d tj	| |d W d    d S 1 s/w   Y  d S )Nz^'aardvark' must be zD.*z
has shape )match)aardvark)
lenreescapenpzerospytestraises
ValueErrorr   check_shape)target
test_shapeerror_patterndata r   W/home/ubuntu/cloudmapper/venv/lib/python3.10/site-packages/matplotlib/tests/test_api.pytest_check_shape	   s   
"r   c                  C   s~   G dd d} t tj | j W d    n1 sw   Y  t tj |  }|j W d    d S 1 s8w   Y  d S )Nc                   @   s$   e Zd Zedejdd ZdS )z)test_classproperty_deprecation.<locals>.Az0.0.0c                 S      d S r   r   )clsr   r   r   f   s   z+test_classproperty_deprecation.<locals>.A.fN)__name__
__module____qualname__r   
deprecatedclasspropertyr   r   r   r   r   A   s    r$   )r   warnsr   MatplotlibDeprecationWarningr   )r$   ar   r   r   test_classproperty_deprecation   s   "r(   c               	      s   t ddddd t dddd }  | fD ] }|  tt j |dd W d    n1 s4w   Y  qt jjf fd	d
	}|  tt j |dd W d    d S 1 s^w   Y  d S )N3.0fooc                 S   r   r   r   r*   r   r   r   func1&      z$test_delete_parameter.<locals>.func1c                  [   r   r   r   )kwargsr   r   r   func2*   r-   z$test_delete_parameter.<locals>.func2barr+   c                    s    |  d S r   r   r+   r,   r   r   pyplot_wrapper3   s   z-test_delete_parameter.<locals>.pyplot_wrapperr   )r   delete_parameterr   r%   r&   deprecation_deprecated_parameter)r/   funcr2   r   r1   r   test_delete_parameter%   s   


"r7   c                  C   s   t ddd	dd} | ddd tt j | dd W d    n1 s'w   Y  tt j | ddd W d    d S 1 sDw   Y  d S )
Nr)   argc                 S   r   r   r   )prer8   postr   r   r   r6   <   r-   z$test_make_keyword_only.<locals>.funcr   r   )r8   r   r   )r   make_keyword_onlyr   r%   r&   )r6   r   r   r   test_make_keyword_only;   s   
"r<   )r   numpyr   r   
matplotlibr   markparametrizer   r(   r7   r<   r   r   r   r   <module>   s    
