Skip to content

Commit

Permalink
refine xfail condition
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Jan 14, 2025
1 parent fe8f200 commit 0ccac1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/functional/codegen/types/test_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ def foo() -> {return_type}:
assert_compile_failed(lambda: get_contract(code), TypeMismatch)


def test_array_copy_oog(env, get_contract, tx_failed, optimize, request):
def test_array_copy_oog(env, get_contract, tx_failed, optimize, experimental_codegen, request):
# GHSA-vgf2-gvx8-xwc3
code = """
@internal
Expand All @@ -865,7 +865,7 @@ def foo(x: uint256[3000]) -> uint256:
s: uint256[3000] = self.bar(x)
return s[0]
"""
if optimize == OptimizationLevel.NONE:
if optimize == OptimizationLevel.NONE and not experimental_codegen:
# fails in get_contract due to code too large
request.node.add_marker(pytest.mark.xfail(strict=True))

Expand All @@ -877,7 +877,7 @@ def foo(x: uint256[3000]) -> uint256:
c.foo(array, gas=gas_used - 1)


def test_array_copy_oog2(env, get_contract, tx_failed, optimize, request):
def test_array_copy_oog2(env, get_contract, tx_failed, optimize, experimental_codegen, request):
# GHSA-vgf2-gvx8-xwc3
code = """
@external
Expand All @@ -886,7 +886,7 @@ def foo(x: uint256[2500]) -> uint256:
t: uint256[2500] = s
return t[0]
"""
if optimize == OptimizationLevel.NONE:
if optimize == OptimizationLevel.NONE and not experimental_codegen:
# fails in get_contract due to code too large
request.node.add_marker(pytest.mark.xfail(strict=True))

Expand Down

0 comments on commit 0ccac1f

Please sign in to comment.