From 64bbb83ee89e26c6df800a3f5ba65a8d0dceac3e Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Wed, 15 Jul 2015 09:24:42 -0400 Subject: [PATCH] BUG: Force string for asset data values. Internal tests depend on string vs. unicode for various asset data, so enforce strings by setting the text_factory on the sqlite connection. --- zipline/assets/assets.py | 1 + 1 file changed, 1 insertion(+) diff --git a/zipline/assets/assets.py b/zipline/assets/assets.py index 197dd7c8..4365da37 100644 --- a/zipline/assets/assets.py +++ b/zipline/assets/assets.py @@ -116,6 +116,7 @@ class AssetFinder(object): pd.Timestamp('now', tz='UTC')) self.conn = sqlite3.connect(db_path) + self.conn.text_factory = str self.cursor = self.conn.cursor() # The AssetFinder also holds a nested-dict of all metadata for