Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
maxme1 committed Jul 5, 2023
1 parent a51aff9 commit e3ad90b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_interface/test_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,11 @@ def x(_a):
with warnings.catch_warnings():
warnings.filterwarnings('error')
with pytest.raises(UserWarning, match='Are you trying to pass a default value for an argument?'):
def _a():
pass

class B(Transform):
_a = lambda: []
_b = _a

with pytest.raises(UserWarning, match='Did you forget to remove the type annotation?'):
class C(Transform):
Expand Down

0 comments on commit e3ad90b

Please sign in to comment.