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

Commit 3e3c569

Browse files
committed
Added package manifest
1 parent 077fe12 commit 3e3c569

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include *.rst

tests/test_longrunning_receive.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@
1616
import os
1717
from urllib.parse import quote_plus
1818

19-
import tests
2019
from azure.eventhub import Offset
2120
from azure.eventhub.async import EventHubClientAsync
2221

23-
logger = tests.get_logger("recv_test.log", logging.INFO)
22+
try:
23+
import tests
24+
logger = tests.get_logger("recv_test.log", logging.INFO)
25+
except ImportError:
26+
logger = logging.getLogger("uamqp")
27+
logger.setLevel(logging.INFO)
2428

2529

2630
async def pump(_pid, receiver, _args, _dl):

tests/test_longrunning_send.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@
1010
import threading
1111
import os
1212

13-
import tests
1413
from azure.eventhub import EventHubClient, Sender, EventData
1514

16-
logger = tests.get_logger("send_test.log", logging.INFO)
15+
try:
16+
import tests
17+
logger = tests.get_logger("send_test.log", logging.INFO)
18+
except ImportError:
19+
logger = logging.getLogger("uamqp")
20+
logger.setLevel(logging.INFO)
1721

1822

1923
def check_send_successful(outcome, condition):

0 commit comments

Comments
 (0)