Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
 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)