a
    Nˆc}  ã                   @   sN   d dl Z d dlZd dlZd dlZd dlZej dddg¡dd„ ƒZdd„ Z	dS )	é    NÚbackendZwebaggÚnbaggc                 C   s†   t  d¡ | dkrt  d¡ ttjƒ}tjdkr8d|d< | |d< dd	| › d
� d d| › d� }tjtj	d|g|d�}|dks‚J ‚d S )NZtornador   ZIPythonÚntÚ ZDISPLAYZ
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-c)Úenvr   )
ÚpytestZimportorskipÚdictÚosÚenvironÚnameÚ
subprocessÚcallÚsysÚ
executable)r   r   Z	test_codeÚret© r   úg/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/matplotlib/tests/test_backend_webagg.pyÚtest_webagg_fallback   s&    




ÿþÿýÿr   c                  C   s   t jjj} | jd u sJ ‚d S )N)Ú
matplotlibÚbackendsZbackend_webagg_coreZFigureManagerWebAggZ_toolbar2_class)Zfmr   r   r   Útest_webagg_core_no_toolbar   s    
r   )
r   r	   r   r   Z'matplotlib.backends.backend_webagg_corer   ÚmarkZparametrizer   r   r   r   r   r   Ú<module>   s   
