From 2520b9093410f5fab0116488a3c5761bc83fcae4 Mon Sep 17 00:00:00 2001 From: tserg <8017125+tserg@users.noreply.github.com> Date: Fri, 17 Nov 2023 16:37:27 +0800 Subject: [PATCH] fix abs test --- tests/functional/builtins/folding/test_abs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional/builtins/folding/test_abs.py b/tests/functional/builtins/folding/test_abs.py index f450e434a4..5929ef458b 100644 --- a/tests/functional/builtins/folding/test_abs.py +++ b/tests/functional/builtins/folding/test_abs.py @@ -4,7 +4,7 @@ from vyper import ast as vy_ast from vyper.builtins import functions as vy_fn -from vyper.exceptions import InvalidType, OverflowException +from vyper.exceptions import InvalidType @pytest.mark.fuzzing @@ -56,5 +56,5 @@ def test_abs_lower_bound_folded(get_contract, assert_tx_failed): def foo() -> int256: return abs(min_value(int256)) """ - with pytest.raises(OverflowException): + with pytest.raises(InvalidType): get_contract(source)