From 0ccac1fdbd9619448b0d506945866ab92abf6594 Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Tue, 14 Jan 2025 12:54:28 -0500 Subject: [PATCH] refine xfail condition --- tests/functional/codegen/types/test_lists.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/functional/codegen/types/test_lists.py b/tests/functional/codegen/types/test_lists.py index d54ff36b4f..9dedbc6360 100644 --- a/tests/functional/codegen/types/test_lists.py +++ b/tests/functional/codegen/types/test_lists.py @@ -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 @@ -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)) @@ -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 @@ -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))