Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
trocher committed Feb 21, 2024
1 parent aa1cc3d commit 0b57eda
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/unit/semantics/analysis/test_for_loop.py
Original file line number Diff line number Diff line change
@@ -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


Expand Down Expand Up @@ -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)


Expand Down

0 comments on commit 0b57eda

Please sign in to comment.