summaryrefslogtreecommitdiff
path: root/test/test_cmdline.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-11-26 08:37:21 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-11-26 08:37:21 -0500
commit484647dc3a3d649543ebb6fcd62701fc84e0ddba (patch)
tree2abccb2a3946ce39a2bfd6596a04ce09dc812633 /test/test_cmdline.py
parent0ecc4917ff57918eefb7a90e163fd4bfa9b923d4 (diff)
downloadpython-coveragepy-git-484647dc3a3d649543ebb6fcd62701fc84e0ddba.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.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/test/test_cmdline.py b/test/test_cmdline.py
index 21639cdb..20c9c5d4 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()