diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-26 08:37:21 -0500 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-26 08:37:21 -0500 |
| commit | 0c90ae2b97504ae96d7c424b7148e6b7333fec1d (patch) | |
| tree | 304ba2f12989d1c84ec8e235d2bd8aaed7956f8f /test/test_cmdline.py | |
| parent | 4e8eb7332f0ead4715dc8a72ff9d229b3f7e3ba3 (diff) | |
| download | python-coveragepy-0c90ae2b97504ae96d7c424b7148e6b7333fec1d.tar.gz | |
When reporting, don't fall over if there's no data to report on. Fixes issue #37.
Diffstat (limited to 'test/test_cmdline.py')
| -rw-r--r-- | test/test_cmdline.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/test/test_cmdline.py b/test/test_cmdline.py index 21639cd..20c9c5d 100644 --- a/test/test_cmdline.py +++ b/test/test_cmdline.py @@ -5,11 +5,9 @@ import mock import coverage sys.path.insert(0, os.path.split(__file__)[0]) # Force relative import for Py3k -from coveragetest import CoverageTest +from coveragetest import CoverageTest, OK, ERR -OK, ERR = 0, 1 - class CmdLineTest(CoverageTest): """Tests of execution paths through the command line interpreter.""" @@ -19,15 +17,6 @@ class CmdLineTest(CoverageTest): .coverage(cover_pylib=None, data_suffix=False, timid=None, branch=None) .load()\n""" - def command_line(self, args, ret=OK): - """Run `args` through the command line. - - Checks that `ret` is returned. - - """ - ret_actual = coverage.CoverageScript().command_line(shlex.split(args)) - self.assertEqual(ret_actual, ret) - def model_object(self): """Return a Mock suitable for use in CoverageScript.""" mk = mock.Mock() |
