From e1b8f341827322b3d80f0b88815037f9ebb0eeeb Mon Sep 17 00:00:00 2001 From: Scott Sanderson Date: Wed, 12 Oct 2016 19:06:56 -0400 Subject: [PATCH] BUG: Allow partials in assert_equal. --- zipline/testing/predicates.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zipline/testing/predicates.py b/zipline/testing/predicates.py index a5535593..da62bdb6 100644 --- a/zipline/testing/predicates.py +++ b/zipline/testing/predicates.py @@ -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