diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2019-11-01 05:55:30 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-11-01 05:55:30 -0400 |
commit | 49e06d33ea63d8e3e44ab5b69d713783551dfaa9 (patch) | |
tree | 0c223bc4303e59f67ecaefb80855a7d5c2f5c24e /coverage/execfile.py | |
parent | 4222077c4f8dc7db4d524a03ba4be872e648ff1a (diff) | |
download | python-coveragepy-git-49e06d33ea63d8e3e44ab5b69d713783551dfaa9.tar.gz |
Clarify two functions
Diffstat (limited to 'coverage/execfile.py')
-rw-r--r-- | coverage/execfile.py | 4 |
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() |