diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml index 6aa48d9a..94572dd7 100644 --- a/.github/workflows/continuous-integration-workflow.yml +++ b/.github/workflows/continuous-integration-workflow.yml @@ -44,7 +44,7 @@ jobs: - name: Echo installed packages run: | - pip freeze + poetry show - name: Test with pytest run: poetry run pytest -v -rs tests --runslow --cov=./ --cov-report=xml diff --git a/stellar_sdk/client/aiohttp_client.py b/stellar_sdk/client/aiohttp_client.py index d773a325..0e71addb 100644 --- a/stellar_sdk/client/aiohttp_client.py +++ b/stellar_sdk/client/aiohttp_client.py @@ -55,12 +55,12 @@ async def __readline(self) -> bytes: return b"".join(line) -_AIOHTTP_DEPS_INSTALLED = True try: import aiohttp from aiohttp_sse_client.client import EventSource aiohttp.streams.StreamReader.readline = __readline # type: ignore[assignment] + _AIOHTTP_DEPS_INSTALLED = True except ImportError: _AIOHTTP_DEPS_INSTALLED = False