3
$ßL]~  ã               @   s\   d dl Z d dlZd dlZd dlmZ d dlZd dlZd dlmZ	 dd„ Z
dd„ Zdd	„ ZdS )
é    N)ÚPath)Úpyplotc              C   s´   t tjƒjd d } | jƒ s&tjdƒ t tjƒjƒ }zht	j
tjt| ƒgdd� t tjƒjƒ }||kršdjtj|jdƒ|jdƒddd	d
d�ƒ}tjd| ƒ W d t tjƒj|ƒ X d S )Né   ztools/boilerplate.pyzboilerplate.py not foundT)ÚcheckÚ
zfound pyplot.pyzexpected pyplot.pyr   Ú )ZfromfileZtofileÚnZlinetermzøpyplot.py is not up-to-date. Please run 'python tools/boilerplate.py' to update pyplot.py. This needs to be done from an environment where your current working copy is installed (e.g. 'pip install -e'd). Here is a diff of unexpected differences:
%s)r   ÚmplÚ__file__ÚparentsÚexistsÚpytestÚskipÚpltZ	read_textÚ
subprocessÚrunÚsysÚ
executableÚstrÚjoinÚdifflibZunified_diffÚsplitÚfailZ
write_text)Z
gen_scriptZorig_contentsZnew_contentsZdiff_msg© r   úD/tmp/pip-install-edjban26/matplotlib/matplotlib/tests/test_pyplot.pyÚtest_pyplot_up_to_date   s$    
r   c              C   sh   t jƒ \} }t jdƒ |jƒ  s$t‚t jdƒ |jƒ s:t‚t jƒ  |jƒ  sPt‚t jƒ  |jƒ sdt‚d S )NFT)r   ZsubplotsZboxZget_frame_onÚAssertionError)ZfigZaxr   r   r   Útest_pyplot_box'   s    

r   c               C   s   t jdddgdddgƒ d S )Né   r   é   )r   Z	stackplotr   r   r   r   Útest_stackplot_smoke3   s    r    )r   r   r   Zpathlibr   r   Z
matplotlibr	   r   r   r   r   r    r   r   r   r   Ú<module>   s   