Skip to content

Commit 3cb16ca

Browse files
authored
PYTHON-3210 Remove flakey string assertion from invalid aws creds FLE test (#922)
1 parent 49c3f9f commit 3cb16ca

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
@@ -1310,9 +1310,9 @@ def test_05_aws_endpoint_wrong_region(self):
13101310
}
13111311
# The full error should be something like:
13121312
# "Credential should be scoped to a valid region, not 'us-east-1'"
1313-
# but we only check for "us-east-1" to avoid breaking on slight
1313+
# but we only check for EncryptionError to avoid breaking on slight
13141314
# changes to AWS' error message.
1315-
with self.assertRaisesRegex(EncryptionError, "us-east-1"):
1315+
with self.assertRaises(EncryptionError):
13161316
self.client_encryption.create_data_key("aws", master_key=master_key)
13171317

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

0 commit comments

Comments
 (0)