From 1f7986422e07b4c76cf41d5de1c01989f62cf930 Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Tue, 5 Sep 2023 08:22:20 -0400 Subject: [PATCH] fix int.from_bytes for python 3.10 apparently, byteorder is required in 3.10 but not in 3.11 --- tests/compiler/test_bytecode_runtime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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