Skip to content

Commit 621dcfe

Browse files
committed
Print full traceback for debugging Windows
1 parent 43d749c commit 621dcfe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spin/tests/testutil.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import subprocess
22
import sys
3+
import traceback
34

45
import pytest
56

@@ -29,7 +30,11 @@ def spin(*args, **user_kwargs):
2930
"stderr": subprocess.PIPE,
3031
"sys_exit": True,
3132
}
32-
return run(["spin"] + list(args), **{**default_kwargs, **user_kwargs})
33+
try:
34+
return run(["spin"] + list(args), **{**default_kwargs, **user_kwargs})
35+
except Exception:
36+
traceback.print_exc()
37+
raise
3338

3439

3540
def stdout(p):

0 commit comments

Comments
 (0)