diff options
-rw-r--r-- | covcov.ini | 3 | ||||
-rw-r--r-- | test/coverage_coverage.py | 8 |
2 files changed, 9 insertions, 2 deletions
@@ -3,6 +3,9 @@ branch = true
data_file = c:\ned\coverage\trunk\.coverage
parallel = true
+source =
+ c:\ned\coverage\trunk\coverage
+ c:\ned\coverage\trunk\test
[report]
exclude_lines =
diff --git a/test/coverage_coverage.py b/test/coverage_coverage.py index 1e1cba0..199f751 100644 --- a/test/coverage_coverage.py +++ b/test/coverage_coverage.py @@ -46,11 +46,15 @@ def run_tests_with_coverage(): covmods[name] = mod del sys.modules[name] import coverage # don't warn about re-import: pylint: disable-msg=W0404 - sys.modules.update(covmods) + #sys.modules.update(covmods) # Run nosetests, with the arguments from our command line. print(":: Running nosetests %s" % " ".join(sys.argv[1:])) - nose.run() + try: + nose.run() + except SystemExit: + # nose3 seems to raise SystemExit, not sure why? + pass cov.stop() print(":: Saving .coverage%s" % suffix) |