File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -56,14 +56,16 @@ def subprocess_run_for_testing(
56
56
timeout : float = None ,
57
57
stdout = None ,
58
58
stderr = None ,
59
- check = False ,
60
- text = True ,
61
- capture_output = False
59
+ check : bool = False ,
60
+ text : bool = True ,
61
+ capture_output : bool = False
62
62
) -> "subprocess.Popen" :
63
63
"""
64
64
Create and run a subprocess.
65
65
66
- Thin wrapper around subprocess.run, intended for testing.
66
+ Thin wrapper around `subprocess.run`, intended for testing. Will
67
+ mark fork() failures on Cygwin as expected failures: not a
68
+ success, but not indicating a problem with the code either.
67
69
68
70
Parameters
69
71
----------
@@ -73,9 +75,9 @@ def subprocess_run_for_testing(
73
75
stdout, stderr
74
76
check : bool
75
77
text : bool
76
- Also called `universal_newlines` in subprocess. I chose this
77
- name since the main effect is returning bytes (False) vs. str
78
- (True), though it also tries to normalize newlines across
78
+ Also called `` universal_newlines` ` in subprocess. I chose this
79
+ name since the main effect is returning bytes (` False` ) vs. str
80
+ (` True` ), though it also tries to normalize newlines across
79
81
platforms.
80
82
capture_output : bool
81
83
Set stdout and stderr to subprocess.PIPE
You can’t perform that action at this time.
0 commit comments