From a83c557855502cee5e81a80a2c185d149099eb66 Mon Sep 17 00:00:00 2001 From: Jason Carver Date: Tue, 27 Feb 2018 11:55:43 -0800 Subject: [PATCH] xfail backends that can't handle pending raw txns --- eth_tester/utils/backend_testing.py | 3 +++ pytest.ini | 1 + 2 files changed, 4 insertions(+) diff --git a/eth_tester/utils/backend_testing.py b/eth_tester/utils/backend_testing.py index b595931f..c04812ef 100644 --- a/eth_tester/utils/backend_testing.py +++ b/eth_tester/utils/backend_testing.py @@ -264,6 +264,9 @@ def test_mine_multiple_blocks(self, eth_tester): # @pytest.mark.parametrize('is_pending', [True, False]) def test_send_raw_transaction_valid_raw_transaction(self, eth_tester, is_pending): + if is_pending and not hasattr(eth_tester.backend, 'send_signed_transaction'): + pytest.xfail("backend does not support presigned pending transactions") + # send funds to our sender raw_privkey = b'\x11' * 32 test_key = keys.PrivateKey(raw_privkey) diff --git a/pytest.ini b/pytest.ini index 849629ca..8547a192 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,4 @@ [pytest] addopts= -v --showlocals python_paths= . +xfail_strict=True