Skip to content

Commit

Permalink
doc(iter_subproc): disable doctest again
Browse files Browse the repository at this point in the history
This does not work reliably on Macs (due to `ls` not failing),
 but it is still worth keeping it as an example.
  • Loading branch information
mih committed Jun 14, 2024
1 parent fc1beb3 commit d951338
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions datasalad/runners/iter_subproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,15 @@ def iter_subproc(
``CommandError`` is raised. The return code is read from
the variable ``ls_stdout``
>>> try:
... with iter_subproc(['ls', '-@']) as ls_stdout:
... while True:
... next(ls_stdout)
... except Exception as e:
... print(repr(e), ls_stdout.returncode)
StopIteration() 2
.. code-block:: python
>>> try:
... with iter_subproc(['ls', '-@']) as ls_stdout:
... while True:
... next(ls_stdout)
... except Exception as e:
... print(repr(e), ls_stdout.returncode)
StopIteration() 2
Parameters
Expand Down

0 comments on commit d951338

Please sign in to comment.