
    P/Ph!                        d dl Z d dlZd dlmZ d dlmZ ej                            dd          d             Z	ej        
                    ddg           ed	g
          ej        
                    ddg          d                                     Zd Zej                            edd           e            d                         Z e            d             ZdS )    N)check_figures_equalTz testing that warnings fail tests)strictreasonc                  .    t          j        d           d S )NzThis should fail the test)warningswarn     ]/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/matplotlib/tests/test_testing.pytest_warn_to_failr   	   s     M-.....r
   a   png)
extensionsbc                     | |k    sJ d S Nr	   )r   fig_refr   fig_tests       r   (test_parametrize_with_check_figure_equalr      s     666666r
   c                      t          j        t          d          5  t                      d             } d d d            d S # 1 swxY w Y   d S )Nz^The decorated function)matchc                     d S r   r	   )testrefs     r   should_failz&test_wrap_failure.<locals>.should_fail   s    Dr
   )pytestraises
ValueErrorr   )r   s    r   test_wrap_failurer       s    	z)B	C	C	C  				 	 
		                 s   AAAz6Test for check_figures_equal test creating new figures)r   r   r   c                 ,    t          j                     d S r   )pltfigure)r   r   s     r   "test_check_figures_equal_extra_figr$      s    
 JLLLLLr
   c                 T    t          j                    }t          j        |           d S r   )r"   r#   close)r   r   figs      r   #test_check_figures_equal_closed_figr(   &   s    
*,,CIcNNNNNr
   )r   r   matplotlib.pyplotpyplotr"   matplotlib.testing.decoratorsr   markxfailr   parametrizer   r    RuntimeErrorr$   r(   r	   r
   r   <module>r0      sr           = = = = = = :   / / / qc""(((qc""  #" )( #"   ,t(  ) )   ) )     r
   