Skip to content

Commit

Permalink
fix some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Nov 13, 2023
1 parent 78de745 commit 519ec25
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/functional/codegen/types/numbers/test_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pytest

from vyper.compiler import compile_code
from vyper.exceptions import InvalidType
from vyper.exceptions import TypeMismatch
from vyper.utils import MemoryPositions


Expand Down Expand Up @@ -151,7 +151,7 @@ def test_custom_constants_fail(get_contract, assert_compile_failed, storage_type
def foo() -> {return_type}:
return MY_CONSTANT
"""
assert_compile_failed(lambda: get_contract(code), InvalidType)
assert_compile_failed(lambda: get_contract(code), TypeMismatch)


def test_constant_address(get_contract):
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/syntax/test_bool.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def foo():
def foo() -> bool:
return (1 == 2) <= (1 == 1)
""",
TypeMismatch,
InvalidOperation,
),
"""
@external
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/syntax/test_ternary.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def foo() -> uint256:
def foo() -> uint256:
return 1 if TEST else 2
""",
InvalidType,
TypeMismatch,
),
( # bad test type: variable
"""
Expand Down

0 comments on commit 519ec25

Please sign in to comment.