B
    Mô`u  ã               @   st   d dl Z d dlZd dlmZ ejjddd�dd„ ƒZej dd	g¡ed
gd�ej dd	g¡dd„ ƒƒƒZdd„ Z	dS )é    N)Úcheck_figures_equalTz testing that warnings fail tests)ÚstrictÚreasonc               C   s   t  d¡ d S )NzThis should fail the test)ÚwarningsÚwarn© r   r   úA/tmp/pip-unpacked-wheel-0c1wfn4v/matplotlib/tests/test_testing.pyÚtest_warn_to_fail   s    r	   Úaé   Zpng)Ú
extensionsÚbc             C   s   | |kst ‚d S )N)ÚAssertionError)r
   Zfig_refr   Zfig_testr   r   r   Ú(test_parametrize_with_check_figure_equal   s    r   c           	   C   s,   t jtdd�� tƒ dd„ ƒ} W d Q R X d S )Nz^The decorated function)Úmatchc             S   s   d S )Nr   )ÚtestÚrefr   r   r   Úshould_fail   s    z&test_wrap_failure.<locals>.should_fail)ÚpytestZraisesÚ
ValueErrorr   )r   r   r   r   Útest_wrap_failure   s    r   )
r   r   Zmatplotlib.testing.decoratorsr   ÚmarkZxfailr	   Zparametrizer   r   r   r   r   r   Ú<module>   s   
