From 3cb16cae24dd427dfccdaa0ec5324a6ac6af7a8d Mon Sep 17 00:00:00 2001 From: Shane Harvey Date: Wed, 6 Apr 2022 12:09:47 -0700 Subject: [PATCH] PYTHON-3210 Remove flakey string assertion from invalid aws creds FLE test (#922) --- test/test_encryption.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_encryption.py b/test/test_encryption.py index f63127a7b..987c02618 100644 --- a/test/test_encryption.py +++ b/test/test_encryption.py @@ -1310,9 +1310,9 @@ class TestCustomEndpoint(EncryptionIntegrationTest): } # The full error should be something like: # "Credential should be scoped to a valid region, not 'us-east-1'" - # but we only check for "us-east-1" to avoid breaking on slight + # but we only check for EncryptionError to avoid breaking on slight # changes to AWS' error message. - with self.assertRaisesRegex(EncryptionError, "us-east-1"): + with self.assertRaises(EncryptionError): self.client_encryption.create_data_key("aws", master_key=master_key) @unittest.skipUnless(any(AWS_CREDS.values()), "AWS environment credentials are not set")