Skip to content

Commit

Permalink
Eased string comparison of exception in xfail in test_bson
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyclements committed Sep 17, 2024
1 parent 7986cc5 commit 26b8398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_bson.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ def test_vector(self):
try:
Binary.from_vector([x], BinaryVectorDtype.PACKED_BIT)
except struct.error as e:
assert str(e) == "ubyte format requires 0 <= number <= 255"
assert "format requires 0 <= number <= 255" in str(e)

def test_unicode_regex(self):
"""Tests we do not get a segfault for C extension on unicode RegExs.
Expand Down

0 comments on commit 26b8398

Please sign in to comment.