Skip to content

Commit

Permalink
test unknown type exception does not have empty hint
Browse files Browse the repository at this point in the history
  • Loading branch information
sandbubbles committed Nov 13, 2024
1 parent 153f874 commit b82f815
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/functional/syntax/exceptions/test_unknown_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import pytest

from vyper import compiler
from vyper.exceptions import UnknownType

def test_unknown_type_exception():
code = """
@internal
def foobar(token: IERC20):
pass
"""
with pytest.raises(UnknownType) as e:
compiler.compile_code(code)
assert "(hint: )" not in str(e.value)

0 comments on commit b82f815

Please sign in to comment.