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 62865ba commit 70b391dCopy full SHA for 70b391d
test/test_bson.py
@@ -791,6 +791,11 @@ def test_vector(self):
791
with self.assertRaises(ValueError):
792
Binary.from_vector([255], BinaryVectorDtype.PACKED_BIT, padding=7)
793
794
+ with self.assertWarns(DeprecationWarning):
795
+ meta = struct.pack("<sB", BinaryVectorDtype.PACKED_BIT.value, 7)
796
+ data = struct.pack("1B", 255)
797
+ Binary(meta + data, subtype=9).as_vector()
798
+
799
# Test form of Binary.from_vector(BinaryVector)
800
assert padded_vec == Binary.from_vector(
801
BinaryVector(list_vector, BinaryVectorDtype.PACKED_BIT, padding)
0 commit comments