From 952d4affe53aae9dc891e553064635a7a5d7037a Mon Sep 17 00:00:00 2001 From: Nick Gheorghita Date: Thu, 10 Jan 2019 12:23:26 +0100 Subject: [PATCH] Update keyerror -> validationerror for mismatched from address in tests --- tests/core/middleware/test_transaction_signing.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/core/middleware/test_transaction_signing.py b/tests/core/middleware/test_transaction_signing.py index 6e43d60e8e..2f1e4af473 100644 --- a/tests/core/middleware/test_transaction_signing.py +++ b/tests/core/middleware/test_transaction_signing.py @@ -2,6 +2,9 @@ import eth_account import eth_keys +from eth_tester.exceptions import ( + ValidationError, +) from eth_utils import ( to_bytes, to_hex, @@ -231,12 +234,12 @@ def fund_account(w3): ), ( # Transaction with mismatched sender - # expect a key error with sendTransaction + unmanaged account + # expect a validation error with sendTransaction + unmanaged account { 'gas': 21000, 'value': 10 }, - KeyError, + ValidationError, SAME_KEY_MIXED_TYPE, ADDRESS_2, ),