Merge pull request #1537 from quantopian/allow-partials-in-assert-equal

BUG: Allow partials in assert_equal.
This commit is contained in:
Scott Sanderson
2016-10-12 19:28:35 -04:00
committed by GitHub
+2
View File
@@ -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