diff options
Diffstat (limited to 'test/test_cmdline.py')
-rw-r--r-- | test/test_cmdline.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_cmdline.py b/test/test_cmdline.py index 4da542da..38f2121d 100644 --- a/test/test_cmdline.py +++ b/test/test_cmdline.py @@ -11,9 +11,11 @@ class CmdLineTest(CoverageTest): """Tests of command-line processing for Coverage.""" def help_fn(self, error=None): + """A mock help_fn to capture the error messages for tests.""" raise Exception(error or "__doc__") def command_line(self, argv): + """Run a Coverage command line, with `argv` as arguments.""" return coverage.CoverageScript().command_line(argv, self.help_fn) def testHelp(self): |