diff options
author | loic@dachary.org <loic@dachary.org> | 2017-01-10 22:38:56 +0100 |
---|---|---|
committer | loic@dachary.org <loic@dachary.org> | 2017-01-10 22:38:56 +0100 |
commit | eb2d5d51543fe8be292dd3643e50913901d4a736 (patch) | |
tree | bbf6e8c6213a4bc77fddee2b42058f614ea443e0 /tests/test_process.py | |
parent | ffc050e243b4c329f582372dd49c55aa225197b9 (diff) | |
download | python-coveragepy-git-eb2d5d51543fe8be292dd3643e50913901d4a736.tar.gz |
simplify --source=pkg test cases
Instead of adding a new test, fix the existing test. It succeeded but
was not actually testing the expected code path because pkg1 is both a
directory and a package.
--HG--
branch : issue-426
Diffstat (limited to 'tests/test_process.py')
-rw-r--r-- | tests/test_process.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/test_process.py b/tests/test_process.py index a9e8d4c6..be9bdb76 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -505,15 +505,6 @@ class ProcessTest(CoverageTest): self.assertEqual(st, 0) self.assertEqual(self.line_count(out), 6, out) - def test_coverage_doubledashsource_module(self): - """ pkg1.sub is not a directory, verify the files it contains - and that were not run show in the report """ - out = self.run_command("coverage run --source pkg1.sub -m pkg1.sub arg") - self.assertIn('pkg1.sub.__main__: passed', out) - st, out = self.run_command_status("coverage report") - self.assertEqual(st, 0) - self.assertIn('runmod3.py', out) - def test_coverage_run_script_imports_doubledashsource(self): # This file imports try_execfile, which compiles it to .pyc, so the # first run will have __file__ == "try_execfile.py" and the second will |