@@ -37,7 +37,9 @@ def test_mutability(self):
3737 def test_item (self ):
3838 l = fns .list_like (ds (1 )).fork_db ()
3939 self .assertIsInstance (l , list_item .ListItem )
40- testing .assert_equal (l [:], ds ([]).with_bag (l .get_bag ()))
40+ testing .assert_equal (
41+ l [:], ds ([], schema_constants .OBJECT ).with_bag (l .get_bag ())
42+ )
4143 l .append (1 )
4244 testing .assert_equal (
4345 l [:], ds ([1 ], schema_constants .OBJECT ).with_bag (l .get_bag ())
@@ -54,12 +56,15 @@ def test_empty_item(self):
5456 l = fns .list_like (ds (None )).fork_db ()
5557 testing .assert_equal (l .no_bag (), ds (None , l .get_schema ().no_bag ()))
5658 l .append (1 )
57- testing .assert_equal (l [:].no_bag (), ds ([]))
59+ testing .assert_equal (l [:].no_bag (), ds ([], schema_constants . OBJECT ))
5860
5961 def test_slice (self ):
6062 l = fns .list_like (ds ([[1 , None ], [3 ]])).fork_db ()
6163 self .assertIsInstance (l , data_slice .DataSlice )
62- testing .assert_equal (l [:], ds ([[[], []], [[]]]).with_bag (l .get_bag ()))
64+ testing .assert_equal (
65+ l [:],
66+ ds ([[[], []], [[]]], schema_constants .OBJECT ).with_bag (l .get_bag ()),
67+ )
6368 l .append (1 )
6469 testing .assert_equal (
6570 l [:],
@@ -69,9 +74,15 @@ def test_slice(self):
6974 def test_all_missing_slice (self ):
7075 l = fns .list_like (ds ([[None , None ], [None ]])).fork_db ()
7176 self .assertIsInstance (l , data_slice .DataSlice )
72- testing .assert_equal (l [:], ds ([[[], []], [[]]]).with_bag (l .get_bag ()))
77+ testing .assert_equal (
78+ l [:],
79+ ds ([[[], []], [[]]], schema_constants .OBJECT ).with_bag (l .get_bag ()),
80+ )
7381 l .append (1 )
74- testing .assert_equal (l [:], ds ([[[], []], [[]]]).with_bag (l .get_bag ()))
82+ testing .assert_equal (
83+ l [:],
84+ ds ([[[], []], [[]]], schema_constants .OBJECT ).with_bag (l .get_bag ()),
85+ )
7586
7687 def test_slice_with_scalar_items (self ):
7788 l = fns .list_like (ds ([[1 , None ], [3 ]]), 1 ).fork_db ()
0 commit comments