We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c971d84 commit ab265aeCopy full SHA for ab265ae
test/test_bson.py
@@ -803,12 +803,11 @@ def test_vector(self):
803
BinaryVector(list_vector, BinaryVectorDtype.FLOAT32)
804
)
805
# Confirm kwargs cannot be passed when BinaryVector is provided
806
- self.assertRaises(
807
- ValueError,
808
- Binary.from_vector,
809
- BinaryVector(list_vector, BinaryVectorDtype.PACKED_BIT, padding),
810
- {"dtype": BinaryVectorDtype.PACKED_BIT},
811
- )
+ with self.assertRaises(ValueError):
+ Binary.from_vector(
+ BinaryVector(list_vector, BinaryVectorDtype.PACKED_BIT, padding),
+ dtype=BinaryVectorDtype.PACKED_BIT,
+ ) # type: ignore[call-overload]
812
813
def test_unicode_regex(self):
814
"""Tests we do not get a segfault for C extension on unicode RegExs.
0 commit comments