Commits

Ned Batchelder committed 5ef4284

The old way of self-coverage testing coverage no longer works.

Comments (0)

Files changed (2)

 $(TEST_ZIP): test/covmodzip1.py
 	zip -j $@ $+
 
-coverage:
-	python coverage_coverage.py
-
 WEBHOME = c:/ned/web/stellated/pages/code/modules
 
 publish:

test/coverage_coverage.py

-# Coverage-test coverage.py!
-
-import coverage
-import test_coverage
-import unittest
-import sys
-
-print "Testing under Python version:\n", sys.version
-
-coverage.erase()
-coverage.start()
-coverage.exclude("#pragma: no cover")
-
-# Re-import coverage to get it coverage tested!
-covmod = sys.modules['coverage']
-del sys.modules['coverage']
-import coverage
-sys.modules['coverage'] = coverage = covmod
-
-suite = unittest.TestSuite()
-suite.addTest(unittest.defaultTestLoader.loadTestsFromNames(["test_coverage"]))
-
-testrunner = unittest.TextTestRunner()
-testrunner.run(suite)
-
-coverage.stop()
-coverage.report("coverage.py")