@@ -171,7 +171,7 @@ def filter_agent_calls(mock_warnings):
171171@mock .patch (REPORT_PORTAL_PACKAGE + '.config.warnings.warn' )
172172def test_rp_api_key (mock_warnings , mock_client_init ):
173173 api_key = 'rp_api_key'
174- variables = utils .DEFAULT_VARIABLES . copy ( )
174+ variables = dict ( utils .DEFAULT_VARIABLES )
175175 variables .update ({'rp_api_key' : api_key }.items ())
176176
177177 result = utils .run_pytest_tests (['examples/test_rp_logging.py' ],
@@ -191,7 +191,7 @@ def test_rp_api_key(mock_warnings, mock_client_init):
191191@mock .patch (REPORT_PORTAL_PACKAGE + '.config.warnings.warn' )
192192def test_rp_uuid (mock_warnings , mock_client_init ):
193193 api_key = 'rp_api_key'
194- variables = utils .DEFAULT_VARIABLES . copy ( )
194+ variables = dict ( utils .DEFAULT_VARIABLES )
195195 del variables ['rp_api_key' ]
196196 variables .update ({'rp_uuid' : api_key }.items ())
197197
@@ -212,7 +212,7 @@ def test_rp_uuid(mock_warnings, mock_client_init):
212212@mock .patch (REPORT_PORTAL_PACKAGE + '.config.warnings.warn' )
213213def test_rp_api_key_priority (mock_warnings , mock_client_init ):
214214 api_key = 'rp_api_key'
215- variables = utils .DEFAULT_VARIABLES . copy ( )
215+ variables = dict ( utils .DEFAULT_VARIABLES )
216216 variables .update ({'rp_api_key' : api_key , 'rp_uuid' : 'rp_uuid' }.items ())
217217
218218 result = utils .run_pytest_tests (['examples/test_rp_logging.py' ],
@@ -232,7 +232,7 @@ def test_rp_api_key_priority(mock_warnings, mock_client_init):
232232@mock .patch (REPORT_PORTAL_PACKAGE + '.config.warnings.warn' )
233233def test_rp_api_key_empty (mock_warnings , mock_client_init ):
234234 api_key = ''
235- variables = utils .DEFAULT_VARIABLES . copy ( )
235+ variables = dict ( utils .DEFAULT_VARIABLES )
236236 variables .update ({'rp_api_key' : api_key }.items ())
237237
238238 result = utils .run_pytest_tests (['examples/test_rp_logging.py' ],
@@ -249,7 +249,7 @@ def test_rp_api_key_empty(mock_warnings, mock_client_init):
249249@mock .patch (REPORT_PORTAL_PACKAGE + '.config.warnings.warn' )
250250def test_rp_api_retries (mock_warnings , mock_client_init ):
251251 retries = 5
252- variables = utils .DEFAULT_VARIABLES . copy ( )
252+ variables = dict ( utils .DEFAULT_VARIABLES )
253253 variables .update ({'rp_api_retries' : str (retries )}.items ())
254254
255255 result = utils .run_pytest_tests (['examples/test_rp_logging.py' ],
0 commit comments