Skip to content
Open
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
12 changes: 9 additions & 3 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,17 @@ def notebook_resources():


def filter_messages_on_error_output(err_output):
allowed_lines = [
allowed_prefixes = [
# ipykernel might be installed without debugpy extension
"[IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled",
"[IPKernelApp] WARNING | debugpy_stream undefined",
# ipykernel warns when kernel runs over TCP without CurveZMQ encryption
"[IPKernelApp] WARNING | Kernel is running over TCP without encryption.",
]
filtered_result = [
line
for line in err_output.splitlines()
if not any(line.startswith(prefix) for prefix in allowed_prefixes)
]
filtered_result = [line for line in err_output.splitlines() if line not in allowed_lines]

return os.linesep.join(filtered_result)

Expand Down
Loading