Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,23 @@ This will prevent a real subprocess execution.
assert process.returncode == 0


**Note:** because of the way the mechanism is implemented, in order for this
plugin to be able to "fake" ``Popen()``, your code needs to use it directly
from the ``subprocess`` module and not by direct import, i.e. your implementation
must be something like

.. code-block:: python

import subprocess


def my_function(*args):
...
proc = subprocess.Popen(CMDLINE)
...



Table of contents
-----------------

Expand Down