summaryrefslogtreecommitdiff
path: root/tests/test_process.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_process.py')
-rw-r--r--tests/test_process.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_process.py b/tests/test_process.py
index 8554eb5..97e2f82 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)