Skip to content

Commit c17d477

Browse files
committed
guard copyToGlobals identifier test when debugpy is absent
1 parent fde8f93 commit c17d477

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tests/test_debugger.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,11 @@ def test_copy_to_globals_rejects_non_identifier(kernel_with_debug):
487487
)
488488
# The request is rejected locally instead of being forwarded to
489489
# setExpression, so the response still carries the copyToGlobals command.
490-
assert reply["success"] is False
491-
assert reply["command"] == "copyToGlobals"
490+
if debugpy:
491+
assert reply["success"] is False
492+
assert reply["command"] == "copyToGlobals"
493+
else:
494+
assert reply == {}
492495

493496

494497
def test_debug_requests_sequential(kernel_with_debug):

0 commit comments

Comments
 (0)