From 727be2af4711dd09d2556b07a5cc8061508c4b97 Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Sun, 16 Jul 2023 19:30:41 -0400 Subject: [PATCH] fix exception type in test_slice_bytes --- tests/parser/functions/test_slice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/parser/functions/test_slice.py b/tests/parser/functions/test_slice.py index f1b642b28d..3064ee308e 100644 --- a/tests/parser/functions/test_slice.py +++ b/tests/parser/functions/test_slice.py @@ -2,7 +2,7 @@ import pytest from hypothesis import given, settings -from vyper.exceptions import ArgumentException +from vyper.exceptions import ArgumentException, TypeMismatch _fun_bytes32_bounds = [(0, 32), (3, 29), (27, 5), (0, 5), (5, 3), (30, 2)] @@ -143,7 +143,7 @@ def _get_contract(): or (literal_start and start > data_length) or (literal_length and length < 1) ): - assert_compile_failed(lambda: _get_contract(), ArgumentException) + assert_compile_failed(lambda: _get_contract(), (ArgumentException, TypeMismatch)) elif len(bytesdata) > data_length: # deploy fail assert_tx_failed(lambda: _get_contract())