From cb7ee531116a5c56faa08f588e8e7908010e0b06 Mon Sep 17 00:00:00 2001 From: Joe Jevnik Date: Tue, 6 Jun 2017 18:33:53 -0400 Subject: [PATCH] BUG: fix assert_equal for tuple-keyed dictionaries --- zipline/testing/predicates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipline/testing/predicates.py b/zipline/testing/predicates.py index fa776ba1..e6d34e5f 100644 --- a/zipline/testing/predicates.py +++ b/zipline/testing/predicates.py @@ -358,7 +358,7 @@ def assert_dict_equal(result, expected, path=(), msg='', **kwargs): assert_equal( resultv, expectedv, - path=path + ('[%r]' % k,), + path=path + ('[%r]' % (k,),), msg=msg, **kwargs )