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: 2 additions & 6 deletions tests/debugpy/server/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,7 @@ def parse(args):
except subprocess.CalledProcessError as exc:
log.debug("Process exited with code {0}. Output: {1!r}, Error: {2!r}",
exc.returncode, exc.output, exc.stderr)
try:
raise pickle.loads(exc.output)
except Exception as e:
log.debug("Failed to deserialize error output: {0}, Output was: {1!r}", e, exc.output)
raise
raise pickle.loads(exc.output)
except EOFError:
# We may have just been shutting down. If so, return an empty argv and options.
argv, options = [], {}
Expand Down Expand Up @@ -243,4 +239,4 @@ def test_script_args(cli):
argv, options = cli(args)

assert argv == ["arg1", "arg2"]
assert options["target"] == "spam.py"
assert options["target"] == "spam.py"
Loading