Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 9, 2022
1 parent db24651 commit 46c24e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions ipykernel/debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ class Debugger:
"inspectVariables",
"richInspectVariables",
"modules",
"copyToGlobals"
"copyToGlobals",
]

def __init__(
Expand Down Expand Up @@ -639,7 +639,7 @@ async def copyToGlobals(self, message):
"arguments": {
"expression": expression,
"value": src_var_name,
"frameId": src_frame_id
"frameId": src_frame_id,
},
}
)
Expand Down
16 changes: 6 additions & 10 deletions ipykernel/tests/test_debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,9 @@ def my_test():
while msg.get("msg_type") != "debug_event" or msg["content"].get("event") != "stopped":
msg = kernel_with_debug.get_iopub_msg(timeout=TIMEOUT)

stacks = wait_for_debug_request(
kernel_with_debug,
"stackTrace",
{"threadId": 1}
)["body"]["stackFrames"]
stacks = wait_for_debug_request(kernel_with_debug, "stackTrace", {"threadId": 1})["body"][
"stackFrames"
]

# Get local frame id
frame_id = stacks[0]["id"]
Expand All @@ -341,11 +339,9 @@ def my_test():
)

# Get the scopes
scopes = wait_for_debug_request(
kernel_with_debug,
"scopes",
{"frameId": frame_id}
)["body"]["scopes"]
scopes = wait_for_debug_request(kernel_with_debug, "scopes", {"frameId": frame_id})["body"][
"scopes"
]

# Get the local variable
locals_ = wait_for_debug_request(
Expand Down

0 comments on commit 46c24e2

Please sign in to comment.