Commit 3219367f authored by Stefan Behnel's avatar Stefan Behnel

another test runner fix for coverage analysis

parent 044c2c21
...@@ -1458,10 +1458,11 @@ def main(): ...@@ -1458,10 +1458,11 @@ def main():
coverage = None coverage = None
if options.coverage or options.coverage_xml or options.coverage_html: if options.coverage or options.coverage_xml or options.coverage_html:
if not options.shard_count and options.shard_num < 0: if options.shard_count <= 1 and options.shard_num < 0:
if not WITH_CYTHON: if not WITH_CYTHON:
options.coverage = options.coverage_xml = options.coverage_html = False options.coverage = options.coverage_xml = options.coverage_html = False
else: else:
print("Enabling coverage analysis")
from coverage import coverage as _coverage from coverage import coverage as _coverage
coverage = _coverage(branch=True) coverage = _coverage(branch=True)
coverage.erase() coverage.erase()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment