Skip to content

Commit f4a7792

Browse files
committed
STY: Black
1 parent 203dd89 commit f4a7792

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

nipype/pipeline/engine/nodes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,7 @@ def _run_command(self, execute, copyfiles=True):
754754

755755
def _tab(text):
756756
from textwrap import indent
757+
757758
if not text:
758759
return ""
759760
return indent(text, '\t')

nipype/pipeline/engine/tests/test_nodes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ class FailCommandLine(nib.CommandLine):
346346
def test_NodeExecutionError(tmp_path, monkeypatch):
347347
import stat
348348

349-
monkeypatch.chdir('.')
349+
monkeypatch.chdir(tmp_path)
350350

351351
# create basic executable and add to PATH
352352
exebin = tmp_path / 'bin'
@@ -369,6 +369,7 @@ def test_NodeExecutionError(tmp_path, monkeypatch):
369369
# Test with function interface
370370
def fail():
371371
raise Exception("Functions can fail too")
372+
372373
func = pe.Node(niu.Function(function=fail), name='func-fail', base_dir='func')
373374
with pytest.raises(pe.nodes.NodeExecutionError) as exc:
374375
func.run()

0 commit comments

Comments
 (0)