aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/analytics/index.py2
-rw-r--r--python/tests/test_index.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/python/analytics/index.py b/python/analytics/index.py
index 1b385f84..75a6e2a6 100644
--- a/python/analytics/index.py
+++ b/python/analytics/index.py
@@ -93,7 +93,7 @@ class Index(object):
def __hash__(self):
- return hash(tuple(getattr(self, k) for k in self.__slots__ if k != '_observed'))
+ return hash(tuple(getattr(self, k) for k in self.__slots__[:-1]))
@property
def start_date(self):
diff --git a/python/tests/test_index.py b/python/tests/test_index.py
index 1d0bde77..edf15a4c 100644
--- a/python/tests/test_index.py
+++ b/python/tests/test_index.py
@@ -11,7 +11,7 @@ import pickle
class TestPickle(unittest.TestCase):
index = Index.from_name("ig", 26, "5yr",
- trade_date = datetime.date(2016, 7, 1))
+ trade_date=datetime.date(2016, 7, 1))
index.notional = 50e6
index.spread = 75