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):
1369
1369
"key" : ("arn:aws:kms:us-east-1:579766882180:key/89fcc2c4-08b0-4bd9-9f25-e30687b580d0" ),
1370
1370
"endpoint" : "kms.us-east-1.amazonaws.com:12345" ,
1371
1371
}
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" ):
1373
1373
await self .client_encryption .create_data_key ("aws" , master_key = master_key )
1374
- self .assertIsInstance (ctx .exception .cause , AutoReconnect )
1375
1374
1376
1375
@unittest .skipUnless (any (AWS_CREDS .values ()), "AWS environment credentials are not set" )
1377
1376
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):
1363
1363
"key" : ("arn:aws:kms:us-east-1:579766882180:key/89fcc2c4-08b0-4bd9-9f25-e30687b580d0" ),
1364
1364
"endpoint" : "kms.us-east-1.amazonaws.com:12345" ,
1365
1365
}
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" ):
1367
1367
self .client_encryption .create_data_key ("aws" , master_key = master_key )
1368
- self .assertIsInstance (ctx .exception .cause , AutoReconnect )
1369
1368
1370
1369
@unittest .skipUnless (any (AWS_CREDS .values ()), "AWS environment credentials are not set" )
1371
1370
def test_05_aws_endpoint_wrong_region (self ):
You can’t perform that action at this time.
0 commit comments