Skip to content

Commit

Permalink
xfail backends that can't handle pending raw txns
Browse files Browse the repository at this point in the history
  • Loading branch information
carver committed Feb 27, 2018
1 parent c1c6096 commit a83c557
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eth_tester/utils/backend_testing.py
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions pytest.ini
@@ -1,3 +1,4 @@
[pytest]
addopts= -v --showlocals
python_paths= .
xfail_strict=True

0 comments on commit a83c557

Please sign in to comment.