Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Commit c7128cd

Browse files
committed
Fix CI
1 parent 893add6 commit c7128cd

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

azure/eventhub/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
except ImportError:
1717
from urllib.parse import urlparse, unquote_plus, urlencode, quote_plus
1818

19-
import six
2019
import uamqp
2120
from uamqp import Message
2221
from uamqp import authentication

azure/eventhub/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def __init__(self, message, details=None):
315315

316316
def _parse_error(self, error_list):
317317
details = []
318-
self.message = error_list if isinstance(error_list, six.text_types) else error_list.decode('UTF-8')
318+
self.message = error_list if isinstance(error_list, six.text_type) else error_list.decode('UTF-8')
319319
details_index = self.message.find(" Reference:")
320320
if details_index >= 0:
321321
details_msg = self.message[details_index + 1:]

tests/asynctests/test_longrunning_eph.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,17 @@ def test_long_running_eph():
112112
loop = asyncio.get_event_loop()
113113

114114
# Storage Account Credentials
115-
STORAGE_ACCOUNT_NAME = os.environ['AZURE_STORAGE_ACCOUNT']
116-
STORAGE_KEY = os.environ['AZURE_STORAGE_SAS_KEY']
117-
LEASE_CONTAINER_NAME = "testleases"
118-
119-
NAMESPACE = os.environ['EVENT_HUB_NAMESPACE']
120-
EVENTHUB = os.environ['EVENT_HUB_NAME']
121-
USER = os.environ['EVENT_HUB_SAS_POLICY']
122-
KEY = os.environ['EVENT_HUB_SAS_KEY']
115+
try:
116+
STORAGE_ACCOUNT_NAME = os.environ['AZURE_STORAGE_ACCOUNT']
117+
STORAGE_KEY = os.environ['AZURE_STORAGE_SAS_KEY']
118+
LEASE_CONTAINER_NAME = "testleases"
119+
120+
NAMESPACE = os.environ['EVENT_HUB_NAMESPACE']
121+
EVENTHUB = os.environ['EVENT_HUB_NAME']
122+
USER = os.environ['EVENT_HUB_SAS_POLICY']
123+
KEY = os.environ['EVENT_HUB_SAS_KEY']
124+
except KeyError:
125+
pytest.skip("Missing live configuration.")
123126

124127
# Eventhub config and storage manager
125128
eh_config = EventHubConfig(NAMESPACE, EVENTHUB, USER, KEY, consumer_group="$default")

0 commit comments

Comments
 (0)