Skip to content

Commit 9c8f322

Browse files
committed
FIX: add missing argument to is_pending mock function
1 parent 7b1a2f4 commit 9c8f322

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nipype/pipeline/plugins/tests/test_sgelike.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from tempfile import TemporaryDirectory
1010
import subprocess
1111

12+
1213
def crasher():
1314
raise ValueError()
1415

@@ -18,7 +19,8 @@ def submit_batchtask(self, scriptfile, node):
1819
subprocess.call(["bash", scriptfile])
1920
return 1
2021

21-
def is_pending(taskid):
22+
23+
def is_pending(self, taskid):
2224
return False
2325

2426

@@ -40,3 +42,4 @@ def test_crashfile_creation():
4042
crashfiles = glob(join(tmpdirname,"crash*crasher*.pklz"))
4143
assert len(crashfiles) == 1
4244
os.chdir(cur_dir)
45+

0 commit comments

Comments
 (0)