Skip to content

Commit

Permalink
update test for venom
Browse files Browse the repository at this point in the history
  • Loading branch information
harkal committed Mar 9, 2024
1 parent afdb086 commit c017371
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit/compiler/asm/test_asm_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def test_dead_code_eliminator(code):
assert all(ctor_only not in instr for instr in runtime_asm)


def test_library_code_eliminator(make_input_bundle):
def test_library_code_eliminator(make_input_bundle, venom_pipeline):
library = """
@internal
def unused1():
Expand All @@ -119,6 +119,7 @@ def foo():
input_bundle = make_input_bundle({"library.vy": library})
res = compile_code(code, input_bundle=input_bundle, output_formats=["asm"])
asm = res["asm"]
assert "some_function()" in asm
if not venom_pipeline:
assert "some_function()" in asm
assert "unused1()" not in asm
assert "unused2()" not in asm

0 comments on commit c017371

Please sign in to comment.