Skip to content

Commit

Permalink
delete bytecode generation as it modifies the bb_runtime output
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Dec 24, 2024
1 parent 8bc96dd commit fdb2cb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/functional/venom/test_venom_repr.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_round_trip_sources(vyper_source, optimize):


def _round_trip_helper(vyper_source, optimize):
out = compile_code(vyper_source, output_formats=["bb_runtime", "bytecode_runtime"])
out = compile_code(vyper_source, output_formats=["bb_runtime"])
bb_runtime = out["bb_runtime"]
venom_code = IRContext.__repr__(bb_runtime)

Expand All @@ -65,10 +65,10 @@ def _round_trip_helper(vyper_source, optimize):
# test that separately)
run_passes_on(ctx, optimize)

# test we can generate assembly+bytecode
asm = generate_assembly_experimental(ctx)
bytecode = generate_bytecode(asm, compiler_metadata=None)
bytecode = f"0x{bytecode.hex()}"
_bytecode = generate_bytecode(asm, compiler_metadata=None)

Check notice

Code scanning / CodeQL

Unused local variable Note test

Variable _bytecode is not used.

# TODO investigate: bytecodes should be equal (even without
# `run_passes_on`) but not for some reason
# assert bytecode == out["bytecode_runtime"]
# assert "0x" + _bytecode.hex() == out["bytecode_runtime"]

0 comments on commit fdb2cb9

Please sign in to comment.