From 7c011ea8e6d2ed8c38e08afc1ea19305781f6379 Mon Sep 17 00:00:00 2001 From: francois Date: Sat, 11 Nov 2023 00:58:31 +0100 Subject: [PATCH] remove bytes conversion --- tests/functional/builtins/folding/test_slice.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/functional/builtins/folding/test_slice.py b/tests/functional/builtins/folding/test_slice.py index 8ad759a483..330165c152 100644 --- a/tests/functional/builtins/folding/test_slice.py +++ b/tests/functional/builtins/folding/test_slice.py @@ -9,10 +9,6 @@ from vyper.exceptions import ArgumentException -def normalize_bytes(data): - return bytes(int.from_bytes(data, "big")) - - @pytest.mark.fuzzing @settings(max_examples=50) @given( @@ -39,7 +35,7 @@ def foo(a: bytes32) -> Bytes[{le}]: s *= 2 le *= 2 - assert normalize_bytes(contract.foo(a)) == new_node.value == bytes.fromhex(a[2:][s : (s + le)]) + assert contract.foo(a) == new_node.value == bytes.fromhex(a[2:][s : (s + le)]) @pytest.mark.fuzzing