diff options
Diffstat (limited to 'test/test_coverage.py')
-rw-r--r-- | test/test_coverage.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test_coverage.py b/test/test_coverage.py index 7b4a41ce..772075e4 100644 --- a/test/test_coverage.py +++ b/test/test_coverage.py @@ -1726,13 +1726,18 @@ class ProcessTest(CoverageTest): # After two -p runs, there should be two .coverage.machine.123 files. self.assertEqual( - len([f for f in os.listdir('.') if f.startswith('.coverage.')]), + len([f for f in os.listdir('.') if f.startswith('.coverage')]), 2) # Combine the parallel coverage data files into .coverage . self.run_command("coverage -c") self.assertTrue(os.path.exists(".coverage")) + # After combining, there should be only the .coverage file. + self.assertEqual( + len([f for f in os.listdir('.') if f.startswith('.coverage')]), + 1) + # Read the coverage file and see that b_or_c.py has all 7 lines # executed. data = coverage.CoverageData() |