1. Ned Batchelder
  2. coverage.py

Commits

Ned Batchelder  committed eadf3eb

Add one more assertion to a test about COVERAGE_PROCESS_START.

  • Participants
  • Parent commits f3f1183
  • Branches default

Comments (0)

Files changed (1)

File tests/test_process.py

View file
                         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):
         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)