Skip to content

Commit

Permalink
tests: Added xfail to complex abi decoding test for struct
Browse files Browse the repository at this point in the history
NOTE: This works in reality (see
ethereum/web3.py#1634 (comment))
however our test suite currently can't handle it because of a bug in
Web3.py
  • Loading branch information
fubuloubu committed Jun 28, 2020
1 parent 0f35b66 commit 7951184
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/parser/globals/test_getters.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import pytest

def test_state_accessor(get_contract_with_gas_estimation_for_constants):
state_accessor = """
y: HashMap[int128, int128]
Expand All @@ -16,7 +18,9 @@ def foo() -> int128:
c.oo(transact={})
assert c.foo() == 5


# TODO: Either wait for this, or refactor test suite to use Brownie
# (which doesn't suffer from this issue)
@pytest.mark.xfail(reason="https://github.com/ethereum/web3.py/issues/1634#issuecomment-650797252")
def test_getter_code(get_contract_with_gas_estimation_for_constants):
getter_code = """
struct W:
Expand Down

0 comments on commit 7951184

Please sign in to comment.