Skip to content

Commit

Permalink
Fix object cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Sep 14, 2023
1 parent 7395f5c commit 5d90513
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions reportportal_client/aio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,10 +626,15 @@ class _SyncRPClient(RP, metaclass=AbstractBaseClass):

_item_stack: _LifoQueue
_log_batcher: LogBatcher
__client: Client
__launch_uuid: Optional[Task[str]]
use_own_launch: bool
step_reporter: StepReporter

@property
def client(self) -> Client:
return self.__client

@property
def launch_uuid(self) -> Optional[Task[str]]:
return self.__launch_uuid
Expand Down Expand Up @@ -882,7 +887,7 @@ def clone(self) -> 'ThreadedRPClient':
:returns: Cloned client object
:rtype: ThreadedRPClient
"""
cloned_client = self.__client.clone()
cloned_client = self.client.clone()
# noinspection PyTypeChecker
cloned = ThreadedRPClient(
endpoint=None,
Expand Down Expand Up @@ -958,7 +963,7 @@ def clone(self) -> 'BatchedRPClient':
:returns: Cloned client object
:rtype: BatchedRPClient
"""
cloned_client = self.__client.clone()
cloned_client = self.client.clone()
# noinspection PyTypeChecker
cloned = BatchedRPClient(
endpoint=None,
Expand Down

0 comments on commit 5d90513

Please sign in to comment.