
    
3ja                     V   S SK r S SKrS SKJr  \R                  R                  SSS9S 5       r\R                  R                  SS/5      \" 5       \R                  R                  S	S/5      S
 5       5       5       rS r	\R                  R                  \
SSS9\" 5       S 5       5       rg)    N)check_figures_equalTz testing that warnings fail tests)strictreasonc                  0    [         R                  " S5        g )NzThis should fail the test)warningswarn     W/home/wildlama/miniconda3/lib/python3.13/site-packages/matplotlib/tests/test_testing.pytest_warn_to_failr      s     MM-.r
   a   bc                 R    UR                  5         UR                  5         X:X  d   eg N)add_subplot)r   fig_refr   fig_tests       r   (test_parametrize_with_check_figure_equalr      s%     6M6r
   c                      [         R                  " [        SS9   [        5       S 5       n S S S 5        g ! , (       d  f       g = f)Nz^The decorated function)matchc                     g r   r	   )testrefs     r   should_fail&test_wrap_failure.<locals>.should_fail   s    r
   )pytestraises
ValueErrorr   )r   s    r   test_wrap_failurer       s3    	z)B	C			 
	 
D	C	Cs	   4
AzBoth figures are empty)r   r   r   c                     g r   r	   )r   r   s     r   #test_check_figures_equal_empty_figsr"      s     	r
   )r   r   matplotlib.testing.decoratorsr   markxfailr   parametrizer   r    RuntimeErrorr"   r	   r
   r   <module>r(      s      = :  // qc"qc" #  # ,t2  4	 4	r
   