From 197b5a0c78ee0749fb2a0070e44ed45b84831d37 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/core/middleware/test_transaction_signing.py b/tests/core/middleware/test_transaction_signing.py index 6e43d60e8e..237b8e9b4d 100644 --- a/tests/core/middleware/test_transaction_signing.py +++ b/tests/core/middleware/test_transaction_signing.py @@ -2,6 +2,7 @@ import eth_account import eth_keys +from eth_tester.exceptions import ValidationError from eth_utils import ( to_bytes, to_hex, @@ -231,12 +232,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, ),