We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
echo
1 parent 9ac41f3 commit a296459Copy full SHA for a296459
datasalad/iterable_subprocess/test_iterable_subprocess.py
@@ -410,9 +410,10 @@ def test_error_returncode_available_from_generator_with_exception(ls_util):
410
assert ls.returncode != 0
411
412
413
-def test_returncode_available_from_generator_with_exception():
+def test_returncode_available_from_generator_with_exception(cat_util):
414
with pytest.raises(StopIteration):
415
- with iterable_subprocess(['echo', 'a'], ()) as echo:
+ # we are (ab)using `cat` to emulate an `echo a`
416
+ with iterable_subprocess(cat_util, ['a']) as echo:
417
while True:
418
next(echo)
419
# On a Linux system, all exceptions that are raised before the subprocess
0 commit comments