File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -74,12 +74,12 @@ def test_make_collect_logs_heap_profile(tmpdir):
7474
7575def test_make_collect_logs_stacktrace (tmpdir ):
7676 with unittest .mock .patch (
77- "sgcollect.urlopen" ,
78- return_value = io .BytesIO (
79- '{{"logfilepath": "{logpath}"}}' .format (
80- logpath = normalize_path_for_json (tmpdir ),
81- ).encode ("utf-8" )
82- ),
77+ "sgcollect.urlopen" ,
78+ return_value = io .BytesIO (
79+ '{{"logfilepath": "{logpath}"}}' .format (
80+ logpath = normalize_path_for_json (tmpdir ),
81+ ).encode ("utf-8" )
82+ ),
8383 ):
8484 stacktrace_file = tmpdir .join ("sg_stack_trace.log" )
8585 stacktrace_file .write ("foo" )
@@ -93,7 +93,6 @@ def test_make_collect_logs_stacktrace(tmpdir):
9393 assert tasks [0 ].description .startswith ("Contents of" )
9494
9595
96-
9796@pytest .mark .parametrize ("should_redact" , [True , False ])
9897def test_make_collect_logs_tasks_duplicate_files (should_redact , tmp_path ):
9998 tmpdir1 = tmp_path / "tmpdir1"
Original file line number Diff line number Diff line change @@ -278,6 +278,7 @@ def make_http_client_pprof_tasks(
278278
279279 return pprof_tasks
280280
281+
281282def make_http_client_stack_trace_task (
282283 sg_url : str , auth_headers : dict [str , str ]
283284) -> PythonTask :
@@ -297,8 +298,6 @@ def make_http_client_stack_trace_task(
297298 return stack_trace_task
298299
299300
300-
301-
302301def to_lower_case_keys_dict (original_dict ):
303302 result = {}
304303 for k , v in list (original_dict .items ()):
You can’t perform that action at this time.
0 commit comments