o
    iu                     @   st   d dl Z d dlZd dlmZ ejjddddd Zejdd	ged
gdejdd	gdd Zdd Z	dS )    N)check_figures_equalTz testing that warnings fail tests)strictreasonc                   C   s   t d d S )NzThis should fail the test)warningswarn r   r   X/var/www/edux/Edux_v2/venv/lib/python3.10/site-packages/matplotlib/tests/test_testing.pytest_warn_to_fail   s   r	   a   png)
extensionsbc                 C   s   | |ksJ d S Nr   )r
   fig_refr   fig_testr   r   r   (test_parametrize_with_check_figure_equal   s   r   c                  C   sB   t jtdd t dd } W d    d S 1 sw   Y  d S )Nz^The decorated function)matchc                 S   s   d S r   r   )testrefr   r   r   should_fail   s   z&test_wrap_failure.<locals>.should_fail)pytestraises
ValueErrorr   )r   r   r   r   test_wrap_failure   s   "r   )
r   r   matplotlib.testing.decoratorsr   markxfailr	   parametrizer   r   r   r   r   r   <module>   s    

