File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,8 @@ def process_func(self):
256
256
change the dir, redirect the stdout and stderr
257
257
before the actual run."""
258
258
cache_dir = self .cache_dir .resolve ()
259
- if (self .redirect_out_err is not False ) and (not isinstance (self .func , CaptureOut )):
259
+ if (self .redirect_out_err is not False ) and \
260
+ (not isinstance (self .func , CaptureOut )):
260
261
if isinstance (self .redirect_out_err , str ):
261
262
path_stdout = Path (self .redirect_out_err )
262
263
path_stderr = Path (self .redirect_out_err )
Original file line number Diff line number Diff line change @@ -54,9 +54,11 @@ def __init__(
54
54
55
55
def __call__ (self , * args , ** kwargs ) -> T .Any :
56
56
if not self .stdout_file .parent .exists ():
57
- self .stdout_file .parent .mkdir (parents = True , exist_ok = True ) # pragma: no cover
57
+ self .stdout_file .parent .mkdir (
58
+ parents = True , exist_ok = True ) # pragma: no cover
58
59
if not self .stderr_file .parent .exists ():
59
- self .stderr_file .parent .mkdir (parents = True , exist_ok = True ) # pragma: no cover
60
+ self .stderr_file .parent .mkdir (
61
+ parents = True , exist_ok = True ) # pragma: no cover
60
62
61
63
if self .stdout_file == self .stderr_file :
62
64
outf = open (self .stdout_file , 'a' )
You can’t perform that action at this time.
0 commit comments