From 49e06d33ea63d8e3e44ab5b69d713783551dfaa9 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 1 Nov 2019 05:55:30 -0400 Subject: Clarify two functions --- coverage/execfile.py | 4 ++++ 1 file changed, 4 insertions(+) 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() -- cgit v1.2.1