Skip to content

Commit a20f59f

Browse files
committed
PYTHON-5198 Less permissive
1 parent 7a44a6b commit a20f59f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/asynchronous/test_encryption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2984,7 +2984,7 @@ async def test_02_no_fields(self):
29842984
async def test_03_invalid_keyid(self):
29852985
with self.assertRaisesRegex(
29862986
EncryptedCollectionError,
2987-
".*.encryptedFields.fields.keyId' is the wrong type 'bool', expected type 'binData",
2987+
"(create|checkAuthForCreateCollection).encryptedFields.fields.keyId' is the wrong type 'bool', expected type 'binData",
29882988
):
29892989
await self.client_encryption.create_encrypted_collection(
29902990
database=self.db,

test/test_encryption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2966,7 +2966,7 @@ def test_02_no_fields(self):
29662966
def test_03_invalid_keyid(self):
29672967
with self.assertRaisesRegex(
29682968
EncryptedCollectionError,
2969-
".*.encryptedFields.fields.keyId' is the wrong type 'bool', expected type 'binData",
2969+
"(create|checkAuthForCreateCollection).encryptedFields.fields.keyId' is the wrong type 'bool', expected type 'binData",
29702970
):
29712971
self.client_encryption.create_encrypted_collection(
29722972
database=self.db,

0 commit comments

Comments
 (0)