Clean up remaining python 3.9 utilization
#46581
Build #20260428.37 had test failures
Details
- Failed: 3,036 (2.20%)
- Passed: 127,883 (92.50%)
- Other: 7,338 (5.31%)
- Total: 138,257
Annotations
Check failure on line 127 in Build log
azure-pipelines / python - pullrequest
Build log #L127
1ES PT Non-Blocking Error: Image ubuntu-24.04 with version 130.0.0 is 49 days old (>= 45 days). Your pipeline may fail due to dependency issues on or after 2026-05-10. Please refresh your managed image or contact your image owners/infra team. For instructions see http://aka.ms/1espt/image-refresh
Check failure on line 128 in Build log
azure-pipelines / python - pullrequest
Build log #L128
1ES PT Non-Blocking Error: Image ubuntu-24.04 with version 130.0.0 is 49 days old (>= 45 days). Your pipeline may fail due to dependency issues on or after 2026-05-10. Please refresh your managed image or contact your image owners/infra team. For instructions see http://aka.ms/1espt/image-refresh
Check failure on line 127 in Build log
azure-pipelines / python - pullrequest
Build log #L127
1ES PT Non-Blocking Error: Image ubuntu-24.04 with version 130.0.0 is 49 days old (>= 45 days). Your pipeline may fail due to dependency issues on or after 2026-05-10. Please refresh your managed image or contact your image owners/infra team. For instructions see http://aka.ms/1espt/image-refresh
Check failure on line 127 in Build log
azure-pipelines / python - pullrequest
Build log #L127
1ES PT Non-Blocking Error: Image ubuntu-24.04 with version 130.0.0 is 49 days old (>= 45 days). Your pipeline may fail due to dependency issues on or after 2026-05-10. Please refresh your managed image or contact your image owners/infra team. For instructions see http://aka.ms/1espt/image-refresh
Check failure on line 1 in test_encrypt_and_decrypt_with_managed_key[7.4_vault]
azure-pipelines / python - pullrequest
test_encrypt_and_decrypt_with_managed_key[7.4_vault]
TypeError: Can't instantiate abstract class KeyVaultRSAPublicKey without an implementation for abstract method '__deepcopy__'
Raw output
test_class = <test_crypto_client.TestCryptoClient object at 0x7f2e13b577a0>
api_version = <ApiVersion.V7_4: '7.4'>, is_hsm = False, kwargs = {}
endpoint_url = 'https://vaultname.vault.azure.net'
client = <azure.keyvault.keys._client.KeyClient object at 0x7f2e12f83ee0>
def _preparer(test_class, api_version, is_hsm, **kwargs):
self._skip_if_not_configured(is_hsm)
if not self.is_logging_enabled:
kwargs.update({"logging_enable": False})
endpoint_url = self.managed_hsm_url if is_hsm else self.vault_url
client = self.create_key_client(endpoint_url, api_version=api_version, **kwargs)
with client:
> fn(test_class, client, is_hsm=is_hsm, managed_hsm_url=self.managed_hsm_url, vault_url=self.vault_url)
tests/_test_case.py:90:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.venv/azure-keyvault-keys/.venv_sdist/lib/python3.13/site-packages/devtools_testutils/proxy_testcase.py:349: in record_wrap
test_variables = test_func(*args, variables=variables, **trimmed_kwargs)
tests/test_crypto_client.py:235: in test_encrypt_and_decrypt_with_managed_key
public_key = crypto_client.create_rsa_public_key()
../../../.venv/azure-keyvault-keys/.venv_sdist/lib/python3.13/site-packages/azure/core/tracing/decorator.py:119: in wrapper_use_tracer
return func(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <azure.keyvault.keys.crypto._client.CryptographyClient object at 0x7f2e12eb3cd0>
@distributed_trace
def create_rsa_public_key(self) -> KeyVaultRSAPublicKey: # pylint:disable=client-method-missing-kwargs
"""Create an `RSAPublicKey` implementation backed by this `CryptographyClient`, as a `KeyVaultRSAPublicKey`.
The `CryptographyClient` will attempt to download the key, if it hasn't been already, as part of this operation.
:returns: A `KeyVaultRSAPublicKey`, which implements `cryptography`'s `RSAPublicKey` interface.
:rtype: ~azure.keyvault.keys.crypto.KeyVaultRSAPublicKey
"""
self._initialize()
> return KeyVaultRSAPublicKey(client=self, key_material=cast(JsonWebKey, self._key))
E TypeError: Can't instantiate abstract class KeyVaultRSAPublicKey without an implementation for abstract method '__deepcopy__'
../../../.venv/azure-keyvault-keys/.venv_sdist/lib/python3.13/site-packages/azure/keyvault/keys/crypto/_client.py:246: TypeError
Check failure on line 1 in test_encrypt_and_decrypt_with_managed_key[7.5_vault]
azure-pipelines / python - pullrequest
test_encrypt_and_decrypt_with_managed_key[7.5_vault]
TypeError: Can't instantiate abstract class KeyVaultRSAPublicKey without an implementation for abstract method '__deepcopy__'
Raw output
test_class = <test_crypto_client.TestCryptoClient object at 0x7f2e13b57930>
api_version = <ApiVersion.V7_5: '7.5'>, is_hsm = False, kwargs = {}
endpoint_url = 'https://vaultname.vault.azure.net'
client = <azure.keyvault.keys._client.KeyClient object at 0x7f2e12d0d8d0>
def _preparer(test_class, api_version, is_hsm, **kwargs):
self._skip_if_not_configured(is_hsm)
if not self.is_logging_enabled:
kwargs.update({"logging_enable": False})
endpoint_url = self.managed_hsm_url if is_hsm else self.vault_url
client = self.create_key_client(endpoint_url, api_version=api_version, **kwargs)
with client:
> fn(test_class, client, is_hsm=is_hsm, managed_hsm_url=self.managed_hsm_url, vault_url=self.vault_url)
tests/_test_case.py:90:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.venv/azure-keyvault-keys/.venv_sdist/lib/python3.13/site-packages/devtools_testutils/proxy_testcase.py:349: in record_wrap
test_variables = test_func(*args, variables=variables, **trimmed_kwargs)
tests/test_crypto_client.py:235: in test_encrypt_and_decrypt_with_managed_key
public_key = crypto_client.create_rsa_public_key()
../../../.venv/azure-keyvault-keys/.venv_sdist/lib/python3.13/site-packages/azure/core/tracing/decorator.py:119: in wrapper_use_tracer
return func(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <azure.keyvault.keys.crypto._client.CryptographyClient object at 0x7f2e12eff750>
@distributed_trace
def create_rsa_public_key(self) -> KeyVaultRSAPublicKey: # pylint:disable=client-method-missing-kwargs
"""Create an `RSAPublicKey` implementation backed by this `CryptographyClient`, as a `KeyVaultRSAPublicKey`.
The `CryptographyClient` will attempt to download the key, if it hasn't been already, as part of this operation.
:returns: A `KeyVaultRSAPublicKey`, which implements `cryptography`'s `RSAPublicKey` interface.
:rtype: ~azure.keyvault.keys.crypto.KeyVaultRSAPublicKey
"""
self._initialize()
> return KeyVaultRSAPublicKey(client=self, key_material=cast(JsonWebKey, self._key))
E TypeError: Can't instantiate abstract class KeyVaultRSAPublicKey without an implementation for abstract method '__deepcopy__'
../../../.venv/azure-keyvault-keys/.venv_sdist/lib/python3.13/site-packages/azure/keyvault/keys/crypto/_client.py:246: TypeError
Check failure on line 1 in test_sign_and_verify_with_managed_key[7.4_vault]
azure-pipelines / python - pullrequest
test_sign_and_verify_with_managed_key[7.4_vault]
TypeError: Can't instantiate abstract class KeyVaultRSAPrivateKey without an implementation for abstract method '__deepcopy__'
Raw output
test_class = <test_crypto_client.TestCryptoClient object at 0x7f2e130cca50>
api_version = <ApiVersion.V7_4: '7.4'>, is_hsm = False, kwargs = {}
endpoint_url = 'https://vaultname.vault.azure.net'
client = <azure.keyvault.keys._client.KeyClient object at 0x7f2e12ec4ec0>
def _preparer(test_class, api_version, is_hsm, **kwargs):
self._skip_if_not_configured(is_hsm)
if not self.is_logging_enabled:
kwargs.update({"logging_enable": False})
endpoint_url = self.managed_hsm_url if is_hsm else self.vault_url
client = self.create_key_client(endpoint_url, api_version=api_version, **kwargs)
with client:
> fn(test_class, client, is_hsm=is_hsm, managed_hsm_url=self.managed_hsm_url, vault_url=self.vault_url)
tests/_test_case.py:90:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.venv/azure-keyvault-keys/.venv_sdist/lib/python3.13/site-packages/devtools_testutils/proxy_testcase.py:349: in record_wrap
test_variables = test_func(*args, variables=variables, **trimmed_kwargs)
tests/test_crypto_client.py:333: in test_sign_and_verify_with_managed_key
private_key = crypto_client.create_rsa_private_key()
../../../.venv/azure-keyvault-keys/.venv_sdist/lib/python3.13/site-packages/azure/core/tracing/decorator.py:119: in wrapper_use_tracer
return func(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <azure.keyvault.keys.crypto._client.CryptographyClient object at 0x7f2e12d6edb0>
@distributed_trace
def create_rsa_private_key(self) -> KeyVaultRSAPrivateKey: # pylint:disable=client-method-missing-kwargs
"""Create an `RSAPrivateKey` implementation backed by this `CryptographyClient`, as a `KeyVaultRSAPrivateKey`.
The `CryptographyClient` will attempt to download the key, if it hasn't been already, as part of this operation.
:returns: A `KeyVaultRSAPrivateKey`, which implements `cryptography`'s `RSAPrivateKey` interface.
:rtype: ~azure.keyvault.keys.crypto.KeyVaultRSAPrivateKey
"""
self._initialize()
> return KeyVaultRSAPrivateKey(client=self, key_material=cast(JsonWebKey, self._key))
E TypeError: Can't instantiate abstract class KeyVaultRSAPrivateKey without an implementation for abstract method '__deepcopy__'
../../../.venv/azure-keyvault-keys/.venv_sdist/lib/python3.13/site-packages/azure/keyvault/keys/crypto/_client.py:234: TypeError
Check failure on line 1 in test_encrypt_and_decrypt_with_managed_key_no_get[7.6_vault]
azure-pipelines / python - pullrequest
test_encrypt_and_decrypt_with_managed_key_no_get[7.6_vault]
TypeError: Can't instantiate abstract class KeyVaultRSAPublicKey without an implementation for abstract method '__deepcopy__'
Raw output
test_class = <test_crypto_client.TestCryptoClient object at 0x7f2e13b57a70>
api_version = <ApiVersion.V7_6: '7.6'>, is_hsm = False, kwargs = {}
endpoint_url = 'https://vaultname.vault.azure.net'
client = <azure.keyvault.keys._client.KeyClient object at 0x7f2e12d5b5b0>
def _preparer(test_class, api_version, is_hsm, **kwargs):
self._skip_if_not_configured(is_hsm)
if not self.is_logging_enabled:
kwargs.update({"logging_enable": False})
endpoint_url = self.managed_hsm_url if is_hsm else self.vault_url
client = self.create_key_client(endpoint_url, api_version=api_version, **kwargs)
with client:
> fn(test_class, client, is_hsm=is_hsm, managed_hsm_url=self.managed_hsm_url, vault_url=self.vault_url)
tests/_test_case.py:90:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.venv/azure-keyvault-keys/.venv_sdist/lib/python3.13/site-packages/devtools_testutils/proxy_testcase.py:349: in record_wrap
test_variables = test_func(*args, variables=variables, **trimmed_kwargs)
tests/test_crypto_client.py:267: in test_encrypt_and_decrypt_with_managed_key_no_get
public_key = crypto_client.create_rsa_public_key()
../../../.venv/azure-keyvault-keys/.venv_sdist/lib/python3.13/site-packages/azure/core/tracing/decorator.py:119: in wrapper_use_tracer
return func(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <azure.keyvault.keys.crypto._client.CryptographyClient object at 0x7f2e12d6c100>
@distributed_trace
def create_rsa_public_key(self) -> KeyVaultRSAPublicKey: # pylint:disable=client-method-missing-kwargs
"""Create an `RSAPublicKey` implementation backed by this `CryptographyClient`, as a `KeyVaultRSAPublicKey`.
The `CryptographyClient` will attempt to download the key, if it hasn't been already, as part of this operation.
:returns: A `KeyVaultRSAPublicKey`, which implements `cryptography`'s `RSAPublicKey` interface.
:rtype: ~azure.keyvault.keys.crypto.KeyVaultRSAPublicKey
"""
self._initialize()
> return KeyVaultRSAPublicKey(client=self, key_material=cast(JsonWebKey, self._key))
E TypeError: Can't instantiate abstract class KeyVaultRSAPublicKey without an implementation for abstract method '__deepcopy__'
../../../.venv/azure-keyvault-keys/.venv_sdist/lib/python3.13/site-packages/azure/keyvault/keys/crypto/_client.py:246: TypeError