o
    Ó\i÷  ã                   @   sn   d dl Z d dlmZ e j dg d¢¡dd„ ƒZdd„ Ze j dg d	¢¡d
d„ ƒZe j dg d¢¡dd„ ƒZdS )é    N©Ú	eval_exprÚexpr)zexec('import os')zprint(1)z	import osz1+1; import osz1^1z' ' * 10**10z9. ** 10000.c                 C   ó<   t jtdd t| ƒ W d   ƒ d S 1 sw   Y  d S )Nz&is not a valid or supported arithmetic©Úmatch©ÚpytestÚraisesÚ
ValueErrorr   ©r   © r   úw/var/www/www-root/data/www/176.119.141.140/sports-predictor/venv/lib/python3.10/site-packages/joblib/test/test_utils.pyÚtest_eval_expr_invalid   s   
"ÿr   c                  C   s@   d} t jtdd t| ƒ W d   ƒ d S 1 sw   Y  d S )Nze1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1zis too longr   r   r   r   r   r   Útest_eval_expr_too_long   s   
"ÿr   )Ú1e7z10**7z9**9**9c                 C   r   )NzNumeric literal .* is too larger   r   r   r   r   r   Ú test_eval_expr_too_large_literal   s   
"ÿr   zexpr, result))z2*6é   )z2**6é@   )z1 + 2*3**(4) / (6 + -7)g      dÀ)z(20 // 3) % 5é   c                 C   s   t | ƒ|ksJ ‚d S )Nr   )r   Úresultr   r   r   Útest_eval_expr_valid#   s   
r   )	r	   Újoblib._utilsr   ÚmarkÚparametrizer   r   r   r   r   r   r   r   Ú<module>   s    þ

þ	