We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51af91b commit aa792eaCopy full SHA for aa792ea
tests/utils.py
@@ -57,7 +57,16 @@ def run_command(
57
)
58
else:
59
# List of args (already split)
60
- result = subprocess.run(cmd, env=env, text=True, capture_output=capture_output)
+ print(f"cmd_env before subprocess: {env=}") # Debug: print env
61
+ result = subprocess.run(
62
+ cmd,
63
+ env=env,
64
+ text=True,
65
+ capture_output=capture_output,
66
+ encoding="utf-8", # Step 1a: Explicit encoding
67
+ universal_newlines=True, # Step 1b: Try universal newlines (less critical now with text=True)
68
+ bufsize=1, # Step 1c: Line buffering (or 0 for unbuffered - can try 0 too)
69
+ )
70
71
print(f"Subprocess result: {result=}") # Debug: log result object
72
if result.returncode != 0:
0 commit comments