
    g                     ~    d dl Z d dlZd dlZd dlZd dlmZ ej                  j                  dddg      d        Z	d Z
y)    N)subprocess_run_for_testingbackendwebaggnbaggc                 2   t        j                  d       | dk(  rt        j                  d       t        t        j                        }t
        j                  dk7  rd|d<   | |d<   dd	|  d
z   dz   d|  dz   }t        t
        j                  d|g|d       y )Ntornador   IPythonwin32 DISPLAY
MPLBACKENDz
import os;z$assert os.environ['MPLBACKEND'] == 'z';z!import matplotlib.pyplot as plt; z!print(plt.get_backend());assert 'z' == plt.get_backend().lower();z-cT)envcheck)	pytestimportorskipdictosenvironsysplatformr   
executable)r   r   	test_codes      a/var/www/dash_apps/app1/venv/lib/python3.12/site-packages/matplotlib/tests/test_backend_webagg.pytest_webagg_fallbackr   	   s    
	"'I&
rzz
C
||wIC 	0	
<	=
-	.):<	<  i@cQUV    c                  h    t         j                  j                  j                  } | j                  J y )N)
matplotlibbackendsbackend_webagg_coreFigureManagerWebAgg_toolbar2_class)fms    r   test_webagg_core_no_toolbarr#      s+    				0	0	D	DB%%%r   )r   r   r   'matplotlib.backends.backend_webagg_corer   matplotlib.testingr   markparametrizer   r#    r   r   <module>r)      sE    	 
  . 9 Xw$78W 9W(&r   