diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-19 08:49:03 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-12-19 08:49:03 -0500 |
commit | 7b7bf9b72099cbf004f601f6c41eb52115cb268a (patch) | |
tree | 85e8d2f8e53eb00ef9f59c095945fcaef0165b45 /test/coveragetest.py | |
parent | 335aa02cd95352581d08578ad6d9009c2db12d1b (diff) | |
download | python-coveragepy-git-7b7bf9b72099cbf004f601f6c41eb52115cb268a.tar.gz |
Add tests for 'coverage debug data'
Diffstat (limited to 'test/coveragetest.py')
-rw-r--r-- | test/coveragetest.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/coveragetest.py b/test/coveragetest.py index 603c685c..ee440f30 100644 --- a/test/coveragetest.py +++ b/test/coveragetest.py @@ -253,7 +253,7 @@ class CoverageTest(TestCase): fname = os.path.join(*fparts) return os.path.normcase(os.path.abspath(os.path.realpath(fname))) - def command_line(self, args, ret=OK): + def command_line(self, args, ret=OK, _covpkg=None): """Run `args` through the command line. Use this when you want to run the full coverage machinery, but in the @@ -265,11 +265,12 @@ class CoverageTest(TestCase): Returns None. """ - ret_actual = coverage.CoverageScript().command_line(shlex.split(args)) + script = coverage.CoverageScript(_covpkg=_covpkg) + ret_actual = script.command_line(shlex.split(args)) self.assertEqual(ret_actual, ret) def run_command(self, cmd): - """ Run the command-line `cmd` in a subprocess, and print its output. + """Run the command-line `cmd` in a subprocess, and print its output. Use this when you need to test the process behavior of coverage. |