Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
almarklein committed Nov 2, 2018
1 parent 1dbb62d commit 4428be3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flexx/event/_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def __call__(self, *args):
if ob is not None:
res = func(ob, *args)
if res is not None:
logger.warning('Action (%s) is not supposed to return a value' %
logger.warning('Action (%s) should not return a value' %
self._name)
else:
loop.add_action_invokation(self, args)
Expand Down
2 changes: 1 addition & 1 deletion flexx/event/_reaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def looks_like_method(func):
return False # this is a bound method
try:
return list(inspect.signature(func).parameters)[0] in ('self', 'this')
except (TypeError, IndexError):
except (TypeError, IndexError, ValueError):
return False


Expand Down
2 changes: 1 addition & 1 deletion flexx/event/tests/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_action_simple():
43
43
12
? not supposed to return a value
? should not return a value
"""

m = MyObject()
Expand Down

0 comments on commit 4428be3

Please sign in to comment.