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 4c4226d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/parser/globals/test_getters.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import pytest


def test_state_accessor(get_contract_with_gas_estimation_for_constants):
state_accessor = """
y: HashMap[int128, int128]
Expand All @@ -17,6 +20,9 @@ def foo() -> int128:
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 4c4226d

Please sign in to comment.