mirror of
https://github.com/openkmip/pykmip
synced 2025-12-23 19:53:24 +00:00
Fix pending deprecation warnings caused by dependency upgrades
This change fixes various pending deprecation warnings throughout the library caused by recent updates to different dependencies. While PyKMIP no longer directly triggers these warnings, some dependencies still do when run through the test suite.
This commit is contained in:
@@ -243,7 +243,7 @@ class TestUtils(testtools.TestCase):
|
||||
mock_get.return_value = ["John Doe", "Jane Doe"]
|
||||
|
||||
args = ("test", )
|
||||
self.assertRaisesRegexp(
|
||||
self.assertRaisesRegex(
|
||||
exceptions.PermissionDenied,
|
||||
"Multiple client identities found.",
|
||||
utils.get_client_identity_from_certificate,
|
||||
@@ -261,7 +261,7 @@ class TestUtils(testtools.TestCase):
|
||||
mock_get.return_value = []
|
||||
|
||||
args = ("test", )
|
||||
self.assertRaisesRegexp(
|
||||
self.assertRaisesRegex(
|
||||
exceptions.PermissionDenied,
|
||||
"The certificate does not define any subject common names. Client "
|
||||
"identity unavailable.",
|
||||
|
||||
Reference in New Issue
Block a user