o
    hB                     @   sz   d dl mZ d dlmZ d dlZd dlZdd eejej ddD Zej	
deej	d	ej	d
dd ZdS )    )import_module)walk_packagesNc                 C   s8   g | ]}|j tstd d |j dD s|j qS )c                 s   s    | ]}| d V  qdS )_N)
startswith).0x r   q/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/matplotlib/tests/test_getattr.py	<genexpr>   s    z<listcomp>.<genexpr>.)namer   __package__anysplit)r   mr   r   r	   
<listcomp>	   s    
r   r   )pathprefixmodule_namezignore::DeprecationWarningzignore::ImportWarningc              
   C   sn   zt | }W n  tttfy& } ztd|  d|  W Y d}~nd}~ww d}t||r5t|| dS dS )zf
    Test that __getattr__ methods raise AttributeError for unknown keys.
    See #20822, #20855.
    zCannot import z due to NTHIS_SYMBOL_SHOULD_NOT_EXIST)r   ImportErrorRuntimeErrorOSErrorpytestskiphasattrdelattr)r   moduleekeyr   r   r	   test_getattr   s   "
r    )	importlibr   pkgutilr   
matplotlibr   __path____name__module_namesmarkparametrizefilterwarningsr    r   r   r   r	   <module>   s    


