a
    ضa                     @   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J d S )N    r   r   r   k/Users/vegardjervell/Documents/master/model/venv/lib/python3.9/site-packages/matplotlib/tests/test_basic.pytest_simple   s    r   c                     sF   dd l  h d}  fddh t h tt@ D }|| ksBJ d S )Nr   >	   allsum__spec__any__doc____name__divmod__package__
__loader__c                    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   )Zok_to_overrideZ
overriddenr   r   r   test_override_builtins   s    &r   c                  C   s6   t d} tjtjd| gi 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   