U
    Fvf                     @   sD   d dl Z d dlZd dlZd dlZd dlZdd Zdd Zdd ZdS )    Nc                   C   s   ddkst d S )N   )AssertionError r   r   ?/tmp/pip-unpacked-wheel-7vhvci0g/matplotlib/tests/test_basic.pytest_simple   s    r   c               	      sP   dd l  dddddddd	d
h	}  fddt tt@ D }|| ksLtd S )Nr   __name____doc____package__
__loader____spec__anyallsumdivmodc                    s$   h | ]}t  |t t|kr|qS r   )getattrbuiltins).0keypylabr   r   	<setcomp>   s    z)test_override_builtins.<locals>.<setcomp>)r   dirr   r   )Zok_to_overrideZ
overriddenr   r   r   test_override_builtins   s    "r   c                  C   s2   t d} tjtjd| gtjdtjdd d S )Na9  
    import sys

    import matplotlib.figure
    import matplotlib.backend_bases
    import matplotlib.pyplot

    assert 'matplotlib._tri' not in sys.modules
    assert 'matplotlib._qhull' not in sys.modules
    assert 'matplotlib._contour' not in sys.modules
    assert 'urllib.request' not in sys.modules
    z-c )Z
MPLBACKENDZMATPLOTLIBRC)env)	textwrapdedent
subprocess
check_callsys
executableosenvirondevnull)sourcer   r   r   test_lazy_imports   s
    

r%   )r   r!   r   r   r   r   r   r%   r   r   r   r   <module>   s   