From 0b57eda836e89ef3848ff9b6300e438b3ed4cb9d Mon Sep 17 00:00:00 2001 From: trocher <43437004+trocher@users.noreply.github.com> Date: Wed, 21 Feb 2024 20:26:36 +0100 Subject: [PATCH] fix test --- tests/unit/semantics/analysis/test_for_loop.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/unit/semantics/analysis/test_for_loop.py b/tests/unit/semantics/analysis/test_for_loop.py index bc4ae1a2f7..2cefd2cc1e 100644 --- a/tests/unit/semantics/analysis/test_for_loop.py +++ b/tests/unit/semantics/analysis/test_for_loop.py @@ -1,12 +1,7 @@ import pytest from vyper.ast import parse_to_ast -from vyper.exceptions import ( - ArgumentException, - ImmutableViolation, - StateAccessViolation, - TypeMismatch, -) +from vyper.exceptions import ArgumentException, ImmutableViolation, TypeMismatch from vyper.semantics.analysis import validate_semantics @@ -88,7 +83,7 @@ def bar(n: uint256): x += i """ vyper_module = parse_to_ast(code) - with pytest.raises(StateAccessViolation): + with pytest.raises(TypeMismatch): validate_semantics(vyper_module, dummy_input_bundle)