Skip to content

Commit aaa9f50

Browse files
committed
Fix tests?
1 parent 21d4b2e commit aaa9f50

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/core/contracts/test_contract_ambiguous_functions.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
)
1010

1111
from web3.exceptions import (
12-
Web3TypeError,
12+
MismatchedABI,
1313
Web3ValueError,
1414
)
1515

@@ -205,5 +205,8 @@ def test_fn_can_be_called_without_parens_if_no_args_kwargs(string_contract):
205205

206206
def test_fn_can_not_be_called_without_parens_if_args(string_contract):
207207
set_value_func = string_contract.get_function_by_signature("setValue(string)")
208-
with pytest.raises(Web3TypeError, match="Incorrect argument count"):
208+
with pytest.raises(
209+
MismatchedABI,
210+
match="Could not identify the intended function with name `setValue`",
211+
):
209212
set_value_func.call()

0 commit comments

Comments
 (0)