mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
tests: Make coverage package optional
Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
parent
647d2898fa
commit
6c5a0d3cda
@ -26,7 +26,6 @@
|
||||
Support for integration of code test coverage analysis with setuptools.
|
||||
"""
|
||||
|
||||
import coverage
|
||||
import glob
|
||||
import setuptools
|
||||
import shutil
|
||||
@ -65,6 +64,8 @@ class CoverageCommand(setuptools.Command):
|
||||
|
||||
def run(self):
|
||||
"""Main command implementation."""
|
||||
import coverage
|
||||
|
||||
if self.distribution.install_requires:
|
||||
self.distribution.fetch_build_eggs(
|
||||
self.distribution.install_requires)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user