mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-02 02:40:51 +08:00
BUG: Allow partials in assert_equal.
This commit is contained in:
@@ -100,6 +100,8 @@ def keywords(func):
|
||||
"""
|
||||
if isinstance(func, type):
|
||||
return keywords(func.__init__)
|
||||
elif isinstance(func, partial):
|
||||
return keywords(func.func)
|
||||
return inspect.getargspec(func).args
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user