From 4e2e0a0df59214922b4f48bace5dad328845ec10 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 15 Sep 2013 19:09:35 -0400 Subject: Add one more assertion to a test about COVERAGE_PROCESS_START. --- tests/test_process.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_process.py b/tests/test_process.py index 8554eb54..97e2f82b 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -583,7 +583,7 @@ class ProcessStartupTest(CoverageTest): pass finally: pth.close() - else: # pragma: not covered + else: # pragma: not covered raise Exception("Couldn't find a place for the .pth file") def tearDown(self): @@ -615,7 +615,9 @@ class ProcessStartupTest(CoverageTest): import main # pylint: disable=F0401,W0612 self.assertEqual(open("out.txt").read(), "Hello, world!\n") + # Read the data from .coverage + self.assert_exists(".mycovdata") data = coverage.CoverageData() data.read_file(".mycovdata") self.assertEqual(data.summary()['sub.py'], 3) -- cgit v1.2.1