Skip to content

Commit df92f51

Browse files
committed
fix formatting
1 parent 1beaae4 commit df92f51

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

tools-tests/sgcollect_info_test.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ def test_make_collect_logs_heap_profile(tmpdir):
7474

7575
def 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])
9897
def test_make_collect_logs_tasks_duplicate_files(should_redact, tmp_path):
9998
tmpdir1 = tmp_path / "tmpdir1"

tools/sgcollect.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ def make_http_client_pprof_tasks(
278278

279279
return pprof_tasks
280280

281+
281282
def 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-
302301
def to_lower_case_keys_dict(original_dict):
303302
result = {}
304303
for k, v in list(original_dict.items()):

0 commit comments

Comments
 (0)