Skip to content

Commit 4f0878d

Browse files
committed
PYTHON-3210 Remove flakey string assertion from invalid aws creds FLE test (#922)
(cherry picked from commit 3cb16ca)
1 parent f700158 commit 4f0878d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_encryption.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,9 +1211,9 @@ def test_05_aws_endpoint_wrong_region(self):
12111211
}
12121212
# The full error should be something like:
12131213
# "Credential should be scoped to a valid region, not 'us-east-1'"
1214-
# but we only check for "us-east-1" to avoid breaking on slight
1214+
# but we only check for EncryptionError to avoid breaking on slight
12151215
# changes to AWS' error message.
1216-
with self.assertRaisesRegex(EncryptionError, "us-east-1"):
1216+
with self.assertRaises(EncryptionError):
12171217
self.client_encryption.create_data_key("aws", master_key=master_key)
12181218

12191219
@unittest.skipUnless(any(AWS_CREDS.values()), "AWS environment credentials are not set")

0 commit comments

Comments
 (0)