
    ^ja                     b   d dl Z d dlZd dlmZ ej                  j                  dd      d        Zej                  j                  ddg       e       ej                  j                  d	dg      d
                      Zd Z	ej                  j                  e
dd       e       d               Zy)    N)check_figures_equalTz testing that warnings fail tests)strictreasonc                  .    t        j                  d       y )NzThis should fail the test)warningswarn     h/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/matplotlib/tests/test_testing.pytest_warn_to_failr      s     MM-.r
   a   bc                 R    |j                          |j                          | |k(  sJ y N)add_subplot)r   fig_refr   fig_tests       r   (test_parametrize_with_check_figure_equalr      s'     6M6r
   c                      t        j                  t        d      5  t               d        } d d d        y # 1 sw Y   y xY w)Nz^The decorated function)matchc                      y r   r	   )testrefs     r   should_failz&test_wrap_failure.<locals>.should_fail   s    r
   )pytestraises
ValueErrorr   )r   s    r   test_wrap_failurer      s;    	z)B	C 			 
	  s   6?zBoth figures are empty)r   r   r   c                      y 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
   