File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1369,9 +1369,8 @@ async def test_04_aws_endpoint_invalid_port(self):
13691369 "key" : ("arn:aws:kms:us-east-1:579766882180:key/89fcc2c4-08b0-4bd9-9f25-e30687b580d0" ),
13701370 "endpoint" : "kms.us-east-1.amazonaws.com:12345" ,
13711371 }
1372- with self .assertRaisesRegex (EncryptionError , "kms.us-east-1.amazonaws.com:12345" ) as ctx :
1372+ with self .assertRaisesRegex (EncryptionError , "kms.us-east-1.amazonaws.com:12345" ):
13731373 await self .client_encryption .create_data_key ("aws" , master_key = master_key )
1374- self .assertIsInstance (ctx .exception .cause , AutoReconnect )
13751374
13761375 @unittest .skipUnless (any (AWS_CREDS .values ()), "AWS environment credentials are not set" )
13771376 async def test_05_aws_endpoint_wrong_region (self ):
Original file line number Diff line number Diff line change @@ -1363,9 +1363,8 @@ def test_04_aws_endpoint_invalid_port(self):
13631363 "key" : ("arn:aws:kms:us-east-1:579766882180:key/89fcc2c4-08b0-4bd9-9f25-e30687b580d0" ),
13641364 "endpoint" : "kms.us-east-1.amazonaws.com:12345" ,
13651365 }
1366- with self .assertRaisesRegex (EncryptionError , "kms.us-east-1.amazonaws.com:12345" ) as ctx :
1366+ with self .assertRaisesRegex (EncryptionError , "kms.us-east-1.amazonaws.com:12345" ):
13671367 self .client_encryption .create_data_key ("aws" , master_key = master_key )
1368- self .assertIsInstance (ctx .exception .cause , AutoReconnect )
13691368
13701369 @unittest .skipUnless (any (AWS_CREDS .values ()), "AWS environment credentials are not set" )
13711370 def test_05_aws_endpoint_wrong_region (self ):
You can’t perform that action at this time.
0 commit comments