o
    tBh                     @   sl   d Z ddlZddlZddlmZ ddlmZ ejj	ej
dk dddd Zejj	ej
dk ddd	d
 ZdS )zg
Tests making sure that deprecated objects properly raise a deprecation warning
when imported/created.
    N)_deprecated_names)      zno module-level getattr)reasonc               	   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   z/var/www/html/riverr-enterprise-integrations-main/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__sysr   joblib.my_exceptionsr   r
   joblib.format_stackr   markxfailversion_infor   r   r   r   r   r   <module>   s    
	