3
AV^¾  ã               @   s>   d dl Z d dlZd dlZd dlZejjdddgƒdd„ ƒZdS )é    NÚbackendZwebaggÚnbaggc             C   s†   t jdƒ | dkrt j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‚t
‚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ÚAssertionError)r   r   Z	test_codeÚret© r   úJ/tmp/pip-build-q3oxor_u/matplotlib/matplotlib/tests/test_backend_webagg.pyÚtest_webagg_fallback   s    



 r   )r   r	   r   r   ÚmarkZparametrizer   r   r   r   r   Ú<module>   s   