From f14002a7419d62b18c454d130eb2550c6116cbca Mon Sep 17 00:00:00 2001 From: Richard Frank Date: Tue, 2 Feb 2016 11:30:44 -0500 Subject: [PATCH] TST: Test fixes for pandas update --- tests/pipeline/test_earnings.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/pipeline/test_earnings.py b/tests/pipeline/test_earnings.py index 459c2538..57b72420 100644 --- a/tests/pipeline/test_earnings.py +++ b/tests/pipeline/test_earnings.py @@ -260,7 +260,7 @@ class EarningsCalendarLoaderTestCase(TestCase): '2014-01-10', '2014-01-15', '2014-01-20', - ]), + ], utc=True), )) def test_compute_earnings(self, dates): @@ -296,10 +296,12 @@ class EarningsCalendarLoaderTestCase(TestCase): assert_series_equal( computed_next.isnull(), computed_next_busday_offset.isnull(), + check_names=False, ) assert_series_equal( computed_previous.isnull(), computed_previous_busday_offset.isnull(), + check_names=False, ) for sid in self.sids: @@ -308,24 +310,28 @@ class EarningsCalendarLoaderTestCase(TestCase): computed_next.xs(sid, level=1), expected_next(sid), sid, + check_names=False, ) assert_series_equal( computed_previous.xs(sid, level=1), expected_previous(sid), sid, + check_names=False, ) assert_series_equal( computed_next_busday_offset.xs(sid, level=1), expected_next_busday_offset(sid), sid, + check_names=False, ) assert_series_equal( computed_previous_busday_offset.xs(sid, level=1), expected_previous_busday_offset(sid), sid, + check_names=False, )