Skip to content

Commit 32be17d

Browse files
committed
Cleanup
1 parent e09ee2c commit 32be17d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bindings/python/test/test_builders.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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):
295295
class 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:])

0 commit comments

Comments
 (0)