def test_constructor(self): with tm.assert_produces_warning(FutureWarning): lst1 = SparseList(self.na_data[:5]) with tm.assert_produces_warning(FutureWarning): exp = SparseList() exp.append(self.na_data[:5]) tm.assert_sp_list_equal(lst1, exp)
def test_constructor(self): lst1 = SparseList(self.na_data[:5]) exp = SparseList() exp.append(self.na_data[:5]) tm.assert_sp_list_equal(lst1, exp)