Skip to content

Commit afb86d2

Browse files
committed
Try printing spin output for Windows debugging
1 parent 43d749c commit afb86d2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spin/tests/testutil.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ def spin(*args, **user_kwargs):
2929
"stderr": subprocess.PIPE,
3030
"sys_exit": True,
3131
}
32-
return run(["spin"] + list(args), **{**default_kwargs, **user_kwargs})
32+
p = run(["spin"] + list(args), **{**default_kwargs, **user_kwargs})
33+
if p.returncode != 0:
34+
print(p.stdout.decode("utf-8"), end="")
35+
return p
3336

3437

3538
def stdout(p):

0 commit comments

Comments
 (0)