@@ -177,7 +177,7 @@ def test_simple(self):
177177 builder .append_count ()
178178 builder .append_null ()
179179 arr = builder .finish ()
180- assert arr .to_pylist () == [0 , 2 , 2 , 5 , 5 ]
180+ assert arr .to_pylist () == [0 , None , 2 , None , 5 ]
181181
182182
183183class TestBuilderManager (TestCase ):
@@ -227,15 +227,15 @@ def test_nested_object(self):
227227 assert array_map ["c.c" ].to_pylist () == [None , None , None , None , 1.0 ]
228228 assert array_map ["f" ].to_pylist () == [None , None , None , None , None ]
229229 # List with a null in the middle.
230- assert array_map ["c.d" ].to_pylist () == [0 , 1 , 2 , 3 , 3 , 4 ]
230+ assert array_map ["c.d" ].to_pylist () == [0 , 1 , 2 , None , 3 , 4 ]
231231 assert array_map ["c.d[]" ].to_pylist () == [1.4 , 1.4 , 1.4 , 1.4 ]
232232 # Regular item with a null in the middle.
233233 assert array_map ["c.b" ].to_pylist () == ["1" , "1" , "1" , None , "1" ]
234234 # Nested object ids are object ids.
235235 obj = array_map ["c.e" ].to_pylist ()[0 ]
236236 assert isinstance (obj , ObjectId )
237237 # Lists can contain objects.
238- assert array_map ["g[].a" ].to_pylist () == [1 , 1 , 1 , None , None ]
238+ assert array_map ["g[].a" ].to_pylist () == [1 , 1 , 1 ]
239239
240240
241241class TestBinaryBuilder (TestCase ):
0 commit comments