Skip to content

Commit

Permalink
fix test_aiohttp_loop (#20811)
Browse files Browse the repository at this point in the history
* fix test_aiohttp_loop

* fix collections import issue
  • Loading branch information
xiangyan99 committed Sep 23, 2021
1 parent 1380e05 commit c94b8a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdk/core/azure-core/tests/test_basic_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,6 @@ def test_conflict_timeout(caplog, port, http_request):
def test_aiohttp_loop():
import asyncio
from azure.core.pipeline.transport import AioHttpTransport
loop = asyncio._get_running_loop()
loop = asyncio.get_event_loop()
with pytest.raises(ValueError):
transport = AioHttpTransport(loop=loop)
5 changes: 4 additions & 1 deletion sdk/core/azure-core/tests/test_rest_http_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
import io
import pytest
import sys
import collections
try:
import collections.abc as collections
except ImportError:
import collections # type: ignore

from azure.core.configuration import Configuration
from azure.core.rest import HttpRequest
Expand Down

0 comments on commit c94b8a6

Please sign in to comment.