peacock-data-public-datasets-idc-cronscript
/
venv
/lib
/python3.10
/site-packages
/joblib
/test
/test_utils.py
| import pytest | |
| from joblib._utils import eval_expr | |
| def test_eval_expr_invalid(expr): | |
| with pytest.raises( | |
| ValueError, match="is not a valid or supported arithmetic" | |
| ): | |
| eval_expr(expr) | |
| def test_eval_expr_valid(expr, result): | |
| assert eval_expr(expr) == result | |