summaryrefslogtreecommitdiff
path: root/coverage/execfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/execfile.py')
-rw-r--r--coverage/execfile.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/coverage/execfile.py b/coverage/execfile.py
index 972d8f1b..ce7c9dd4 100644
--- a/coverage/execfile.py
+++ b/coverage/execfile.py
@@ -245,6 +245,8 @@ def run_python_module(args):
`args` is the argument array to present as sys.argv, including the first
element naming the module being executed.
+ This is a helper for tests, to encapsulate how to use PyRunner.
+
"""
runner = PyRunner(args, as_module=True)
runner.prepare()
@@ -258,6 +260,8 @@ def run_python_file(args):
element naming the file being executed. `package` is the name of the
enclosing package, if any.
+ This is a helper for tests, to encapsulate how to use PyRunner.
+
"""
runner = PyRunner(args, as_module=False)
runner.prepare()