3030from reportportal_client ._internal .aio .http import DEFAULT_RETRY_NUMBER , ClientSession , RetryingClientSession
3131
3232# noinspection PyProtectedMember
33- from reportportal_client ._internal .static .defines import NOT_SET
3433from reportportal_client .aio .client import Client
3534from reportportal_client .core .rp_issues import Issue
3635from reportportal_client .core .rp_requests import AsyncRPRequestLog
@@ -58,10 +57,10 @@ def test_client_pickling():
5857 "retry_num, expected_wrapped_class, expected_param" ,
5958 [
6059 (1 , RetryingClientSession , 1 ),
61- (0 , aiohttp .ClientSession , NOT_SET ),
62- (- 1 , aiohttp .ClientSession , NOT_SET ),
63- (None , aiohttp .ClientSession , NOT_SET ),
64- (NOT_SET , RetryingClientSession , DEFAULT_RETRY_NUMBER ),
60+ (0 , aiohttp .ClientSession , - 1 ),
61+ (- 2 , aiohttp .ClientSession , - 1 ),
62+ (None , aiohttp .ClientSession , - 1 ),
63+ (- 1 , RetryingClientSession , DEFAULT_RETRY_NUMBER ),
6564 ],
6665)
6766@pytest .mark .asyncio
@@ -73,7 +72,7 @@ async def test_retries_param(retry_num, expected_wrapped_class, expected_param):
7372 # Check the wrapped session type
7473 # noinspection PyProtectedMember
7574 assert isinstance (session ._client , expected_wrapped_class )
76- if expected_param is not NOT_SET :
75+ if expected_param != - 1 :
7776 # noinspection PyProtectedMember
7877 assert getattr (session ._client , "_RetryingClientSession__retry_number" ) == expected_param
7978
0 commit comments