diff --git a/tests/compiler/test_bytecode_runtime.py b/tests/compiler/test_bytecode_runtime.py index 3acf3ab529..9519b03772 100644 --- a/tests/compiler/test_bytecode_runtime.py +++ b/tests/compiler/test_bytecode_runtime.py @@ -42,7 +42,7 @@ def __init__(): def _parse_cbor_metadata(initcode): - metadata_ofst = int.from_bytes(initcode[-2:]) + metadata_ofst = int.from_bytes(initcode[-2:], "big") metadata = cbor2.loads(initcode[-metadata_ofst:-2]) return metadata