setup: Omit progress.py from coverage output

Since it's copied code that we rarely touch
This commit is contained in:
Cole Robinson 2019-06-09 11:36:07 -04:00
parent b3a9b98e08
commit ae06ed7aaa

View File

@ -421,7 +421,7 @@ class TestBaseCommand(distutils.core.Command):
cov = None
if self.coverage:
import coverage
omit = ["/usr/*", "/*/tests/*"]
omit = ["/usr/*", "/*/tests/*", "*progress.py"]
cov = coverage.coverage(omit=omit)
cov.erase()
if not self._external_coverage: