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 <HASH>..<HASH> 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 @@ class StorageTableClientTest(TableTestCase):
         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)
added python3 conditional (#<I>)

addresses #<I>