diff options
Diffstat (limited to 'test/coverage_coverage.py')
-rw-r--r-- | test/coverage_coverage.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/coverage_coverage.py b/test/coverage_coverage.py index 1e1cba02..199f7518 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) |