Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion tests/test_debugger.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import sys

import pytest
from packaging.version import Version

from .utils import TIMEOUT, get_replies, get_reply, new_kernel

Expand Down Expand Up @@ -119,7 +120,12 @@ def test_attach_debug(kernel_with_debug):
)
if debugpy:
assert reply["success"]
assert reply["body"]["result"] == ""
# A "repl" evaluate with no frameId hits debugpy's exec path. debugpy < 1.8.21
# reported an empty result there; debugpy >= 1.8.21 reports the actual value.
if Version(debugpy.__version__) >= Version("1.8.21"):
assert reply["body"]["result"] == "ab"
else:
assert reply["body"]["result"] == ""
else:
assert reply == {}

Expand Down
Loading