o
    i5                     @   s8   d Z ddlZddlmZ ddlmZ dd Zdd ZdS )zg
Tests making sure that deprecated objects properly raise a deprecation warning
when imported/created.
    N)_deprecated_namesc               	   C   s`   dt v sJ t D ]%} d| }tjt|d td|  W d    n1 s(w   Y  qd S )NJoblibException8{} is deprecated and will be removed from joblib in 0.16matchz#from joblib.my_exceptions import {})_deprecated_exceptionsformatpytestwarnsDeprecationWarningexec)namemsg r   ^/var/www/edux/Edux_v2/venv/lib/python3.10/site-packages/joblib/test/test_deprecated_objects.py!test_deprecated_joblib_exceptions   s   r   c              	   C   sl   dt v sJ dt v sJ t D ]%}d|}tjt|d td| W d    n1 s.w   Y  qd S )N	safe_repreq_reprr   r   z"from joblib.format_stack import {})_deprecated_format_utilsr   r	   r
   r   r   )capsysr   r   r   r   r   $test_deprecated_formatting_utilities   s   r   )	__doc__r	   joblib.my_exceptionsr   r   joblib.format_stackr   r   r   r   r   r   r   <module>   s    	