File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ def test_simple_allow_invalid(self):
161161 self .assertEqual (arr .to_pylist (), ids + [None , None ])
162162
163163 def test_simple (self ):
164- ids = [ObjectId () for i in range (5 )]
164+ ids = [ObjectId () for _ in range (5 )]
165165 builder = ObjectIdBuilder ()
166166 builder .append (ids [0 ])
167167 builder .append_values (ids [1 :])
@@ -295,11 +295,10 @@ def test_nested_object(self):
295295class TestBinaryBuilder (TestCase ):
296296 def test_simple_allow_invalid (self ):
297297 data = [Binary (bytes (i ), 10 ) for i in range (5 )]
298- # Assuming subtype is passed as first arg and allow_invalid is a kwarg
299298 builder = BinaryBuilder (10 , allow_invalid = True )
300299 builder .append (data [0 ])
301300 builder .append_values (data [1 :])
302- builder .append (1 ) # Invalid type (int) for Binary
301+ builder .append (1 )
303302 builder .append_null ()
304303 arr = builder .finish ()
305304
@@ -310,7 +309,6 @@ def test_simple_allow_invalid(self):
310309
311310 def test_simple (self ):
312311 data = [Binary (bytes (i ), 10 ) for i in range (5 )]
313- # Assuming subtype is passed as first arg, allow_invalid=False by default
314312 builder = BinaryBuilder (10 )
315313 builder .append (data [0 ])
316314 builder .append_values (data [1 :])
You can’t perform that action at this time.
0 commit comments