Skip to content

Commit fcd2cda

Browse files
committed
Add validation error instead of key error to validation error
1 parent 8c06633 commit fcd2cda

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/core/middleware/test_transaction_signing.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
from web3.providers.eth_tester import (
2828
EthereumTesterProvider,
2929
)
30+
from eth_tester.exceptions import (
31+
ValidationError,
32+
)
3033
from web3.utils.toolz import (
3134
identity,
3235
merge,
@@ -231,12 +234,12 @@ def fund_account(w3):
231234
),
232235
(
233236
# Transaction with mismatched sender
234-
# expect a key error with sendTransaction + unmanaged account
237+
# expect a validation error with sendTransaction + unmanaged account
235238
{
236239
'gas': 21000,
237240
'value': 10
238241
},
239-
KeyError,
242+
ValidationError,
240243
SAME_KEY_MIXED_TYPE,
241244
ADDRESS_2,
242245
),

0 commit comments

Comments
 (0)