From ba34994b54f86ceb5b0f82b107074605a4e3759c Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Wed, 18 Oct 2023 16:58:37 +0300 Subject: [PATCH] Fix for Python 3.7 support, Launch UUID attribute for AIO clients --- CHANGELOG.md | 3 +++ reportportal_client/aio/client.py | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7298d3c..6d5147a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog ## [Unreleased] +### Fixed +- Python 3.7 support, by @HardNorth +- Launch UUID attribute for AIO clients, by @HardNorth ## [5.5.2] ### Fixed diff --git a/reportportal_client/aio/client.py b/reportportal_client/aio/client.py index 3fab8cb..800e024 100644 --- a/reportportal_client/aio/client.py +++ b/reportportal_client/aio/client.py @@ -259,7 +259,7 @@ async def start_launch(self, if not self._skip_analytics: stat_coro = async_send_event('start_launch', *agent_name_version(attributes)) - self.__stat_task = asyncio.create_task(stat_coro, name='Statistics update') + self.__stat_task = asyncio.create_task(stat_coro) launch_uuid = await response.id logger.debug(f'start_launch - ID: {launch_uuid}') @@ -675,8 +675,8 @@ def __init__( self.__client = client else: self.__client = Client(endpoint, project, **kwargs) + self.__launch_uuid = launch_uuid if launch_uuid: - self.__launch_uuid = launch_uuid self.use_own_launch = False else: self.use_own_launch = True @@ -1040,8 +1040,8 @@ def __init__( self.__client = Client(endpoint, project, **kwargs) self.own_client = False + self.__launch_uuid = launch_uuid if launch_uuid: - self.__launch_uuid = launch_uuid self.own_launch = False else: self.own_launch = True