diff --git a/sdk/tables/azure-data-tables/tests/test_table_client_cosmos.py b/sdk/tables/azure-data-tables/tests/test_table_client_cosmos.py index a55f836ba2a8..968d0233fa3b 100644 --- a/sdk/tables/azure-data-tables/tests/test_table_client_cosmos.py +++ b/sdk/tables/azure-data-tables/tests/test_table_client_cosmos.py @@ -6,10 +6,10 @@ import pytest import platform from time import sleep +import sys from azure.data.tables import TableServiceClient, TableClient from azure.data.tables._version import VERSION -from azure.core.exceptions import HttpResponseError from _shared.testcase import ( TableTestCase, @@ -419,7 +419,7 @@ def test_create_service_with_custom_account_endpoint_path(self, tables_cosmos_ac if self.is_live: sleep(SLEEP_DELAY) - @pytest.mark.xfail + @pytest.mark.skipif(sys.version_info < (3, 0), reason="Malformed string") @CosmosPreparer() def test_user_agent_default(self, tables_cosmos_account_name, tables_primary_cosmos_account_key): service = TableServiceClient(self.account_url(tables_cosmos_account_name, "cosmos"), credential=tables_primary_cosmos_account_key)