From c4b9c79da2c596e4544ea0de4b036689d4666662 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 29 Dec 2009 22:24:33 -0500 Subject: Delete files combined during 'coverage combine'. Fixes issue #40. --- test/test_coverage.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test') 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() -- cgit v1.2.1