Skip to content

Commit

Permalink
MAINT: Add assertion message.
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Sanderson committed Feb 14, 2018
1 parent bb6bc3b commit a4a4401
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zipline/data/minute_bars.py
Expand Up @@ -906,7 +906,8 @@ class BcolzMinuteBarReader(MinuteBarReader):
'low': 1550,
'volume': 1550,
}
assert set(FIELDS) == set(DEFAULT_MINUTELY_SID_CACHE_SIZES)
assert set(FIELDS) == set(DEFAULT_MINUTELY_SID_CACHE_SIZES), \
"FIELDS should match DEFAULT_MINUTELY_SID_CACHE_SIZES keys"

# Wrap the defaults in proxy so that we don't accidentally mutate them in
# place in the constructor. If a user wants to change the defaults, they
Expand Down

0 comments on commit a4a4401

Please sign in to comment.