Skip to content

Commit a296459

Browse files
committed
test: avoid requiring an echo command to be available
1 parent 9ac41f3 commit a296459

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

datasalad/iterable_subprocess/test_iterable_subprocess.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,10 @@ def test_error_returncode_available_from_generator_with_exception(ls_util):
410410
assert ls.returncode != 0
411411

412412

413-
def test_returncode_available_from_generator_with_exception():
413+
def test_returncode_available_from_generator_with_exception(cat_util):
414414
with pytest.raises(StopIteration):
415-
with iterable_subprocess(['echo', 'a'], ()) as echo:
415+
# we are (ab)using `cat` to emulate an `echo a`
416+
with iterable_subprocess(cat_util, ['a']) as echo:
416417
while True:
417418
next(echo)
418419
# On a Linux system, all exceptions that are raised before the subprocess

0 commit comments

Comments
 (0)