OwlCyberSecurity - MANAGER
Edit File: test_pyplot.cpython-38.pyc
U ��]~ � @ s\ d dl Z d dlZd dlZd dlmZ d dlZd dlZd dlmZ dd� Z dd� Zdd � ZdS ) � N)�Path)�pyplotc C s� t tj�jd d } | �� s&t�d� t tj��� }zht jtj t| �gdd� t tj��� }||kr�d�tj|�d�|�d�ddd d d��}t�d| � W 5 t tj�� |� X d S ) N� ztools/boilerplate.pyzboilerplate.py not foundT)Zcheck� zfound pyplot.pyzexpected pyplot.pyr � )ZfromfileZtofile�nZlinetermz�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_textZ write_text� subprocess�run�sys� executable�str�join�difflibZunified_diff�splitZfail)Z gen_scriptZ orig_contentsZnew_contentsZdiff_msg� r �>/usr/lib/python3/dist-packages/matplotlib/tests/test_pyplot.py�test_pyplot_up_to_date s0 ����r c C sd t �� \} }t �d� |�� r"t�t �d� |�� s8t�t �� |�� rLt�t �� |�� s`t�d S )NFT)r ZsubplotsZboxZget_frame_on�AssertionError)ZfigZaxr r r �test_pyplot_box'