Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
eirannejad committed Mar 28, 2024
1 parent 6b1f23f commit 771746f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_delegate.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,7 @@ def always_so_negative():
def always_so_positive():
return 1
bad = BoolDelegate(always_so_positive)
with pytest.raises(TypeError):
ob.CallBoolDelegate(bad)
assert ob.CallBoolDelegate(bad) == True

def test_object_delegate():
"""Test object delegate."""
Expand Down

0 comments on commit 771746f

Please sign in to comment.