mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-04 12:30:07 +08:00
BUG: Allow partials in assert_equal.
This commit is contained in:
1 parent
103993a8a8
commit
e1b8f34182
1 file changed
+2
@@ -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