Skip to content

Commit

Permalink
Fixes KeyError: 'params' when running tests (microsoft#23397)
Browse files Browse the repository at this point in the history
  • Loading branch information
andybbruno authored May 9, 2024
1 parent 946d371 commit d99e74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python_files/vscode_pytest/run_pytest_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
print(f"Error: Could not connect to runTestIdsPort: {e}")
print("Error: Could not connect to runTestIdsPort")
try:
test_ids_from_buffer = raw_json["params"]
test_ids_from_buffer = raw_json.get("params")
if test_ids_from_buffer:
arg_array = ["-p", "vscode_pytest"] + args + test_ids_from_buffer
print("Running pytest with args: " + str(arg_array))
Expand Down

0 comments on commit d99e74e

Please sign in to comment.